1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# cargo-deny configuration — see https://embarkstudios.github.io/cargo-deny/
#
# Run locally with:
# nix run nixpkgs#cargo-deny -- check
#
# Or via the `cargo install cargo-deny && cargo deny check` path.
[]
# Opt in to the RustSec advisory database.
= ["https://github.com/rustsec/advisory-db"]
# Treat yanked crates as warnings (not errors) so a stale Cargo.lock does not
# block CI; release promotions should require a fresh `cargo update`.
= "warn"
# Require explicit reasoning for ignore entries — list them with the advisory
# ID and a brief reason.
= []
[]
# Allow only licenses currently present in the dependency tree.cargo-deny
# warns on stale `allow` entries (`license-not-encountered`); a future dep that
# introduces a new license will fail the gate with a clear `license not allowed`
# error — that is intentional, so each new license is a deliberate decision.
# Re-allow as needed when a dep bump introduces a new license.
= ["Apache-2.0", "Apache-2.0 WITH LLVM-exception", "MIT", "BSD-2-Clause", "Unicode-3.0"]
# Deny everything not listed above.
= 0.93
[]
# Allow multiple versions of a crate (cargo's resolver does this in practice
# for transitive deps; forbidding it is rarely worth the churn).
= "warn"
# Deny explicitly-banned crates.
= [
# Add crates that should never appear here. Examples of crates this project
# would ban on sight: none currently, but the field is here for future use.
]
# Warn on wildcard dependencies (`dep = "*"`); the Cargo.toml uses caret
# requirements, so this should always pass.
= "warn"
[]
# Allow git sources but require them to be in this allow-list (none today).
= []
# Allow the crates.io index URL.
= ["https://github.com/rust-lang/crates.io-index"]
# Deny any registry other than crates.io.
= "deny"
# Deny any git source not listed above.
= "deny"