Create cargo-audit file

This commit is contained in:
Ajeet D'Souza 2021-06-06 20:17:11 +05:30
parent 5b0d0009a4
commit cf59aa1c0f
2 changed files with 4 additions and 2 deletions

2
.cargo/audit.toml Normal file
View File

@ -0,0 +1,2 @@
[advisories]
ignore = ["RUSTSEC-2020-0095"]

View File

@ -25,14 +25,14 @@ test:
nix-shell --pure --run 'cargo check --all-features $(ci_color_always)' nix-shell --pure --run 'cargo check --all-features $(ci_color_always)'
nix-shell --pure --run 'cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all' nix-shell --pure --run 'cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all'
nix-shell --pure --run 'cargo test --all-features --no-fail-fast $(ci_color_always)' nix-shell --pure --run 'cargo test --all-features --no-fail-fast $(ci_color_always)'
nix-shell --pure --run 'cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095' nix-shell --pure --run 'cargo audit --deny warnings $(ci_color_always)'
else else
test: test:
cargo fmt -- --check --files-with-diff $(ci_color_always) cargo fmt -- --check --files-with-diff $(ci_color_always)
cargo check --all-features $(ci_color_always) cargo check --all-features $(ci_color_always)
cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all cargo clippy --all-features $(ci_color_always) -- --deny warnings --deny clippy::all
cargo test --no-fail-fast $(ci_color_always) cargo test --no-fail-fast $(ci_color_always)
cargo audit --deny warnings $(ci_color_always) --ignore=RUSTSEC-2020-0095 cargo audit --deny warnings $(ci_color_always)
endif endif
uninstall: uninstall: