-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
71 lines (64 loc) · 1.88 KB
/
deny.toml
File metadata and controls
71 lines (64 loc) · 1.88 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
# deny.toml — Phantom Engine dependency policy
# Enforces dependency security limits and licensing parameters.
[graph]
targets = [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
]
all-features = false
[advisories]
version = 2
ignore = [
"RUSTSEC-2025-0141", # bincode 1.3.3 transitive from deno_core
"RUSTSEC-2025-0057", # fxhash transitive
"RUSTSEC-2024-0384", # instant transitive from sled
"RUSTSEC-2024-0436", # paste transitive from v8
]
[licenses]
version = 2
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MIT",
"MIT-0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"Unicode-3.0",
"OpenSSL",
"CC0-1.0",
"MPL-2.0",
"CDLA-Permissive-2.0",
]
confidence-threshold = 0.8
# wreq-util is LGPL-3.0 — accepted because it is a transitive utility
# crate from wreq (our TLS-fingerprint-safe HTTP client). wreq itself
# is MIT-licensed. wreq-util contains no code we modify or link statically
# in a way that triggers LGPL copyleft obligations.
[[licenses.exceptions]]
allow = ["LGPL-3.0"]
crate = "wreq-util"
[bans]
multiple-versions = "warn"
wildcards = "allow"
deny = [
{ crate = "reqwest", reason = "bot-detectable TLS fingerprint" },
{ crate = "rquest", reason = "missing JA4H controls, replaced by wreq" },
{ crate = "hyper-rustls", reason = "bot-detectable TLS fingerprint" },
{ crate = "native-tls", reason = "uses system TLS, detectable fingerprint" },
{ crate = "openssl-sys", reason = "causes symbol conflicts with boring-sys" },
{ crate = "rusty_v8", reason = "old unmaintained crate name, use v8 instead" },
]
# anyhow is a transitive dep of deno_core — we cannot remove it without
# forking deno_core. Custom code should use thiserror.
skip = []
[[bans.features]]
crate = "rquickjs"
deny = ["parallel"]
[sources]
unknown-registry = "deny"
unknown-git = "warn"
allow-registry = [
"https://github.com/rust-lang/crates.io-index",
]