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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Cargo-deny configuration for rilua
# Tailored for a project with zero external dependencies (dev-only: flamegraph)
# Policy: prevent any new external dependencies from being introduced
[]
# Target the platforms we actually build and test on
= [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
# Exclude dev-dependencies from checks (criterion, flamegraph)
= true
[]
= 1
[]
# Check for security advisories across all dependencies
= "$CARGO_HOME/advisory-dbs"
= ["https://github.com/rustsec/advisory-db"]
# Scan all crates for unmaintained/unsound advisories
= "all"
= "all"
# Advisory IDs to ignore (add with reason if needed)
= []
[]
# Strictly prevent duplicate versions
= "deny"
# Deny wildcard version specs
= "deny"
# Highlight both lowest and simplest paths for duplicates
= "all"
# Allow workspace crates and existing dev-dependency
= [
"rilua",
"flamegraph",
]
# Deny any external dependencies from being added
= [
# Common external dependencies that should never be introduced
{ = "openssl", = "pure Rust alternative" },
{ = "openssl-sys", = "pure Rust alternative" },
{ = "libssh2-sys", = "C library dependency" },
{ = "cmake", = "cc crate" },
{ = "git2", = "gix" },
]
# No duplicates to skip - we want to catch them all
= []
# Skip entire dependency trees only with documented reasons
= [
# Example: { crate = "some-crate", depth = 5, reason = "waiting on upstream fix" },
]
[]
# Strict source control - only allow crates.io
= "deny"
= "deny"
= ["https://github.com/rust-lang/crates.io-index"]
= []
[]
= []
= []
= []
[]
# Allow only licenses actually used by the project
= [
"MIT",
"Apache-2.0",
]
# High confidence threshold for license detection
= 0.93
# Warn about unused licenses - no pre-allowed licenses for future use
= "warn"
# No license exceptions - only flamegraph (dev-only) is allowed
= []
[]
# Ignore licenses for our own unpublished workspace crates
= true
# No private registries
= []