-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
105 lines (95 loc) · 3.45 KB
/
deny.toml
File metadata and controls
105 lines (95 loc) · 3.45 KB
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
95
96
97
98
99
100
101
102
103
104
105
# cargo-deny configuration for DaemonEye
# See: https://embarkstudios.github.io/cargo-deny/
[graph]
targets = [
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
]
all-features = true
exclude-dev = true
[licenses]
unused-allowed-license = "allow"
# Allow common open source licenses used in the Rust ecosystem
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"CC0-1.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-3.0",
"Unlicense",
"Zlib",
"0BSD",
"MPL-2.0",
]
include-dev = true
# Confidence threshold for license detection
confidence-threshold = 0.8
[bans]
multiple-versions = "warn"
wildcards = 'allow' # workspace path deps use * version; re-evaluate when publishing to crates.io
deny = [
{ crate = "git2", use-instead = "gix" },
{ crate = "openssl", use-instead = "rustls" },
{ crate = "openssl-sys", use-instead = "rustls" },
"libssh2-sys",
{ crate = "cmake", use-instead = "cc" },
]
skip = []
# Whitelist Windows dependency conflicts for cross-platform compatibility
# These conflicts arise from different dependency chains:
# - sysinfo v0.37.2 → windows v0.61.3 (older Windows crates)
# - chrono v0.4.42 → iana-time-zone → windows-core v0.62.2 (newer Windows crates)
# - interprocess v2.2.3 → windows-sys v0.52.0 (legacy Windows crates)
# - tokio ecosystem → various windows-sys versions
# TODO: Monitor for resolution as dependencies update
skip-tree = [
# Windows core dependencies (actual versions from Cargo.lock)
{ name = "windows", version = "=0.61.3" },
{ name = "windows-collections", version = "=0.2.0" },
{ name = "windows-core", version = "=0.61.2" },
{ name = "windows-core", version = "=0.62.2" },
{ name = "windows-future", version = "=0.2.1" },
{ name = "windows-implement", version = "=0.60.2" },
{ name = "windows-interface", version = "=0.59.3" },
{ name = "windows-link", version = "=0.1.3" },
{ name = "windows-link", version = "=0.2.1" },
{ name = "windows-numerics", version = "=0.2.0" },
{ name = "windows-result", version = "=0.3.4" },
{ name = "windows-result", version = "=0.4.1" },
{ name = "windows-strings", version = "=0.4.2" },
{ name = "windows-strings", version = "=0.5.1" },
{ name = "windows-sys", version = "=0.52.0" },
{ name = "windows-sys", version = "=0.59.0" },
{ name = "windows-sys", version = "=0.60.2" },
{ name = "windows-sys", version = "=0.61.2" },
{ name = "windows-targets", version = "=0.52.6" },
{ name = "windows-targets", version = "=0.53.5" },
{ name = "windows_x86_64_gnu", version = "=0.52.6" },
{ name = "windows_x86_64_gnu", version = "=0.53.1" },
{ name = "windows_x86_64_msvc", version = "=0.52.6" },
{ name = "windows_x86_64_msvc", version = "=0.53.1" },
]
[advisories]
yanked = "deny"
# Allow unmaintained crates from workspace but with explicit exceptions
unmaintained = "workspace"
# Advisory handling is managed via audit.toml
# cargo-deny relies on cargo-audit for advisory detection
# No ignored advisories — all RUSTSEC issues resolved.
ignore = [ ]
[sources]
# Allow crates from crates.io
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = [ "https://github.com/rust-lang/crates.io-index" ]
[sources.allow-org]
# Allow specific organizations for git sources if needed
github = [ ]
gitlab = [ ]
bitbucket = [ ]