mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2025-02-16 12:18:25 +00:00
Editorconfig fixes
This commit is contained in:
parent
2a35def5ef
commit
8cc83c00b8
6 changed files with 41 additions and 44 deletions
12
.github/workflows/approve.yml
vendored
12
.github/workflows/approve.yml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: Automatic Approve
|
name: Automatic Approve
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: 0 0 * * *
|
||||||
workflow_dispatch:
|
workflow_dispatch: null
|
||||||
jobs:
|
jobs:
|
||||||
automatic-approve:
|
automatic-approve:
|
||||||
name: Automatic Approve
|
name: Automatic Approve
|
||||||
|
@ -11,6 +11,6 @@ jobs:
|
||||||
- name: Automatic Approve
|
- name: Automatic Approve
|
||||||
uses: mheap/automatic-approve-action@v1.1.0
|
uses: mheap/automatic-approve-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
workflows: "rust.yml"
|
workflows: rust.yml
|
||||||
dangerous_files: "src/main.rs,Cargo.toml,Cargo.lock"
|
dangerous_files: 'src/main.rs,Cargo.toml,Cargo.lock'
|
||||||
|
|
62
.github/workflows/rust.yml
vendored
62
.github/workflows/rust.yml
vendored
|
@ -1,43 +1,41 @@
|
||||||
name: Rust
|
name: Rust
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches:
|
||||||
|
- master
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: 0 0 * * *
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Get random cache id
|
- name: Get random cache id
|
||||||
run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV
|
run: echo "CACHE_ID=$((RANDOM))" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: pat-s/always-upload-cache@v2.1.5
|
- uses: pat-s/always-upload-cache@v2.1.5
|
||||||
with:
|
with:
|
||||||
path: results/results.yaml
|
path: results/results.yaml
|
||||||
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-${{ env.CACHE_ID }}
|
key: results-${{ hashFiles(''Cargo.lock'') }}-${{ hashFiles(''README.md'') }}-${{ env.CACHE_ID }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}-
|
||||||
results-${{ hashFiles('Cargo.lock') }}-
|
results-${{ hashFiles('Cargo.lock') }}-
|
||||||
results-
|
results-
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
- name: Run
|
- name: Run
|
||||||
run: cargo run
|
run: cargo run
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
RUST_LOG: warn
|
RUST_LOG: warn
|
||||||
|
|
|
@ -14,11 +14,10 @@ If you want to add an entry to the `README.md` please consider this:
|
||||||
- if you want to add something, please use the template `[ACCOUNT/REPO](https://github.com/ACCOUNT/REPO) [[CRATE](https://crates.io/crates/CRATE)] — DESCRIPTION`
|
- if you want to add something, please use the template `[ACCOUNT/REPO](https://github.com/ACCOUNT/REPO) [[CRATE](https://crates.io/crates/CRATE)] — DESCRIPTION`
|
||||||
* if you've not published your crate to `crates.io` remove the `[[CRATE](...)]` part.
|
* if you've not published your crate to `crates.io` remove the `[[CRATE](...)]` part.
|
||||||
* if you have a CI build, please add the build badge. Put the image after the description, separated by a space. Please make sure to add the branch information to the image:
|
* if you have a CI build, please add the build badge. Put the image after the description, separated by a space. Please make sure to add the branch information to the image:
|
||||||
* example for Travis: ` [<img src="https://api.travis-ci.org/XXX/CRATE.svg?branch=master">](https://travis-ci.org/XXX/CRATE)`
|
* example for Travis: `[<img src="https://api.travis-ci.org/XXX/CRATE.svg?branch=master">](https://travis-ci.org/XXX/CRATE)`
|
||||||
* for Github actions please see https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge
|
* for Github actions please see [adding-a-workflow-status-badge](https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge)
|
||||||
- please pay attention to the alphabetical ordering.
|
- please pay attention to the alphabetical ordering.
|
||||||
|
|
||||||
|
|
||||||
## Removing projects
|
## Removing projects
|
||||||
|
|
||||||
We don't remove projects unless they are outright broken or pronounced deprecated by another project or by its author.
|
We don't remove projects unless they are outright broken or pronounced deprecated by another project or by its author.
|
||||||
|
|
|
@ -23,4 +23,4 @@ regex = "1"
|
||||||
scraper = "0.11"
|
scraper = "0.11"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
chrono-humanize = "0.2"
|
chrono-humanize = "0.2"
|
||||||
diffy = "0.2"
|
diffy = "0.2"
|
||||||
|
|
2
results/.gitignore
vendored
2
results/.gitignore
vendored
|
@ -1,2 +1,2 @@
|
||||||
# Note that this is in a directory so we can cache it with Travis
|
# Note that this is in a directory so we can cache it with Travis
|
||||||
results.yaml
|
results.yaml
|
||||||
|
|
|
@ -488,4 +488,4 @@ async fn main() -> Result<(), Error> {
|
||||||
} else {
|
} else {
|
||||||
Err(format_err!("{} urls with errors", failed))
|
Err(format_err!("{} urls with errors", failed))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue