返回 CodeWhale
deny.toml
根目录 / deny.toml
1 # cargo-deny configuration for CodeWhale
2 # https://embarkstudios.github.io/cargo-deny/
3
4 [graph]
5 # Scan all workspace members with all features
6 all-features = true
7
8 [advisories]
9 # Deny unmaintained and unsound crates
10 unmaintained = "all"
11 unsound = "all"
12 # Scoped exceptions; consumer and retirement criteria are documented in
13 # docs/dependency-maintenance.md.
14 ignore = [
15 "RUSTSEC-2025-0141", # bincode 1.3.3: syntect's embedded syntax/theme dumps
16 { id = "RUSTSEC-2026-0543", reason = "chrono 0.4.45 unmaintained notice only, no vulnerability; workspace-wide dependency with no safe upgrade during the 0.10.3 freeze; review by 2027-02-15 and migrate to jiff or time" },
17 { id = "RUSTSEC-2026-0542", reason = "humantime 2.4.0 unmaintained only because it wraps chrono; reached solely via the cucumber 0.23 test-only dependency of codewhale-tui, which requires it; review by 2027-02-15 with the chrono migration" },
18 # heapless 0.8.0 (RUSTSEC-2026-0574..0582): reached only as a non-optional
19 # dependency edge of faster-hex 0.10.1 (<- gix-hash 0.28.1 <- gix 0.90.0,
20 # the latest gix releases) for git object-id hex. gix-hash enables faster-hex's
21 # std->alloc features, which compile out its sole heapless use behind
22 # cfg(not(feature = "alloc")); none of the flagged APIs is reachable. No
23 # fix exists in a compatible range: 0.8.0 is the sole 0.8.x release,
24 # faster-hex 1.0.0 makes heapless optional but gix-hash requires ^0.10.1.
25 # Assessment: docs/dependency-maintenance.md. Review by 2027-02-15.
26 { id = "RUSTSEC-2026-0574", reason = "heapless 0.8.0 FindMutView::pop unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
27 { id = "RUSTSEC-2026-0575", reason = "heapless 0.8.0 Spsc::peek unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
28 { id = "RUSTSEC-2026-0576", reason = "heapless 0.8.0 IndexMap::truncate unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
29 { id = "RUSTSEC-2026-0577", reason = "heapless 0.8.0 panicking-Drop UB path unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
30 { id = "RUSTSEC-2026-0578", reason = "heapless 0.8.0 SortedLinkedList::zeroize unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
31 { id = "RUSTSEC-2026-0579", reason = "heapless 0.8.0 Deque TryFrom impl unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
32 { id = "RUSTSEC-2026-0580", reason = "heapless 0.8.0 treiber stack race unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
33 { id = "RUSTSEC-2026-0581", reason = "heapless 0.8.0 Deque::make_contiguous unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
34 { id = "RUSTSEC-2026-0582", reason = "heapless 0.8.0 IndexMap::insert unreachable: sole dependent faster-hex compiles out all heapless use under its alloc feature, which gix-hash enables; no compatible fix (see deny.toml comment); review by 2027-02-15" },
35 ]
36
37 [bans]
38 # Duplicate versions warn without failing CI. Each skip below is a duplicate
39 # that survives because an upstream crate has not released a compatible
40 # version; a duplicate that is not listed surfaces as a new `cargo deny`
41 # warning. Remove a skip when `cargo deny check bans` reports an unmatched
42 # or unnecessary skip.
43 # - sha2 0.10 vs 0.11: oauth2 (0.10) vs schemaui 0.12 (0.11)
44 # - thiserror 1 vs 2: portable-pty 0.9 via filedescriptor 0.8 (v1) vs workspace v2
45 # - toml 0.8 vs 1.x, toml_edit 0.22 vs 0.25, toml_datetime 0.6 vs 1.x, winnow 0.7
46 # vs 1.0, serde_spanned 0.6 vs 1.x: rust-i18n 4.2 (0.8 stack) vs workspace 1.x
47 # - core-foundation 0.9 vs 0.10, security-framework 2.11 vs 3.x: macOS TLS/cert
48 # crates not yet unified on core-foundation 0.10 / security-framework 3
49 # - itertools 0.11 / 0.13 vs 0.14: rust-i18n (0.11) and transitive 0.13 consumers
50 multiple-versions = "warn"
51 wildcards = "deny"
52 skip = [
53 { name = "sha2", version = "0.10.9" },
54 { name = "thiserror", version = "1.0.69" },
55 { name = "thiserror-impl", version = "1.0.69" },
56 { name = "toml", version = "0.8.23" },
57 { name = "toml_datetime", version = "0.6.11" },
58 { name = "toml_edit", version = "0.22.27" },
59 { name = "winnow", version = "0.7.15" },
60 { name = "serde_spanned", version = "0.6.9" },
61 { name = "core-foundation", version = "0.9.4" },
62 { name = "itertools", version = "0.13.0" },
63 { name = "security-framework", version = "2.11.1" },
64 # Pinned to the versions actually in Cargo.lock so a NEW duplicate in this
65 # family is flagged instead of skipped silently.
66 { name = "windows-sys", version = "0.52.0" },
67 { name = "windows-sys", version = "0.59.0" },
68 { name = "windows-sys", version = "0.60.2" },
69 { name = "windows-sys", version = "0.61.2" },
70 { name = "windows-targets", version = "0.52.6" },
71 { name = "windows-targets", version = "0.53.5" },
72 { name = "windows_aarch64_gnullvm", version = "0.52.6" },
73 { name = "windows_aarch64_gnullvm", version = "0.53.1" },
74 { name = "windows_aarch64_msvc", version = "0.52.6" },
75 { name = "windows_aarch64_msvc", version = "0.53.1" },
76 { name = "windows_i686_gnu", version = "0.52.6" },
77 { name = "windows_i686_gnu", version = "0.53.1" },
78 { name = "windows_i686_msvc", version = "0.52.6" },
79 { name = "windows_i686_msvc", version = "0.53.1" },
80 { name = "windows_x86_64_gnu", version = "0.52.6" },
81 { name = "windows_x86_64_gnu", version = "0.53.1" },
82 { name = "windows_x86_64_gnullvm", version = "0.52.6" },
83 { name = "windows_x86_64_gnullvm", version = "0.53.1" },
84 { name = "windows_x86_64_msvc", version = "0.52.6" },
85 { name = "windows_x86_64_msvc", version = "0.53.1" },
86 ]
87 # For crates where the version is not the discriminator, use skip-tree to
88 # allow the duplicate tree regardless of version.
89 skip-tree = [
90 { name = "portable-pty" },
91 { name = "rust-i18n" },
92 { name = "oauth2" },
93 ]
94
95 [sources]
96 # Deny unknown registries and git sources
97 unknown-registry = "deny"
98 unknown-git = "deny"
99 # Allow only crates.io
100 allow-registry = ["https://github.com/rust-lang/crates.io-index"]
101 # Allow git sources used by the project (add as needed)
102 allow-git = []
103
104 [licenses]
105 # Confidence threshold for license inference from text
106 confidence-threshold = 0.93
107 # Allowed licenses (MIT for CodeWhale, plus common transitive deps)
108 allow = [
109 "MIT",
110 "MIT-0",
111 "Apache-2.0",
112 "Apache-2.0 WITH LLVM-exception",
113 "ISC",
114 "Unicode-3.0",
115 "Unicode-DFS-2016",
116 "Zlib",
117 "BSD-2-Clause",
118 "BSD-3-Clause",
119 "0BSD",
120 "MPL-2.0",
121 "CC0-1.0",
122 "BSL-1.0",
123 "CDLA-Permissive-2.0",
124 ]
125 # License exceptions for specific crates if needed
126 exceptions = []
127
127 lines TOML