-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdeny.toml
More file actions
64 lines (59 loc) · 1.78 KB
/
Copy pathdeny.toml
File metadata and controls
64 lines (59 loc) · 1.78 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
# cargo-deny configuration.
#
# Enforces three things at CI time:
# 1. No security advisories (`cargo deny check advisories`)
# 2. Only permissive OSS licenses in the dependency tree
# (`cargo deny check licenses`)
# 3. Only crates.io and our own git repos as sources
# (`cargo deny check sources`)
#
# Run locally: `cargo deny check`
#
# Kept deliberately close to the Origin workspace's policy so a dependency
# accepted in one repo is not silently rejected in the other. Lite is
# Apache-2.0 rather than BUSL-1.1, which is the only intentional divergence in
# the allow list.
[graph]
all-features = true
# Exclude dev-dependencies from the crate graph (the `check` CLI flag
# `--exclude-dev` was removed in cargo-deny 0.20; it is config-only now).
exclude-dev = true
[advisories]
version = 2
yanked = "deny"
ignore = [
# Unmaintained transitive crates with no safe upgrade available. Each
# mirrors an entry in the Origin workspace's deny.toml and is revisited on
# the same schedule; none has a known security impact on Lite.
"RUSTSEC-2024-0436", # paste; review-by: 2027-01-31
"RUSTSEC-2023-0089", # atomic-polyfill; review-by: 2027-01-31
"RUSTSEC-2021-0153", # encoding; review-by: 2027-01-31
]
[licenses]
version = 2
confidence-threshold = 0.8
allow = [
# Permissive licenses commonly used by Rust ecosystem deps.
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"0BSD",
"ISC",
"Zlib",
"Unicode-3.0",
"Unicode-DFS-2016",
"CC0-1.0",
"MPL-2.0",
"MIT-0",
"CDLA-Permissive-2.0",
"BSL-1.0",
]
[bans]
multiple-versions = "warn"
wildcards = "deny"
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]