Skip to content

Commit

Permalink
add cargo deny config
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Mar 20, 2023
1 parent a36675c commit 0a1eee0
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
all-features = true
feature-depth = 1

[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
ignore = [
#"RUSTSEC-0000-0000",
]

[licenses]
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-3-Clause",
"BSD-2-Clause",
"ISC",
"Unicode-DFS-2016",
]
copyleft = "warn"
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 0.8
exceptions = [
{ allow = ["Zlib"], name = "piz", version = "*" },
]

[bans]
multiple-versions = "deny"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"

[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
cargo-outdated
cargo-udeps
nixpkgs-fmt
cargo-deny

llvmPackages_13.libclang
llvmPackages_13.libcxxClang
Expand Down

0 comments on commit 0a1eee0

Please sign in to comment.