Repository navigation
Expand file tree
/
Copy pathdeny.toml
More file actions
73 lines (66 loc) · 2.39 KB
/
Copy pathdeny.toml
File metadata and controls
73 lines (66 loc) · 2.39 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
# cargo-deny configuration for the Gateway workspace (BSL-1.0).
# Run locally with `cargo deny check`; CI runs the same.
[graph]
# Check the dependency graph with all features enabled, not just the defaults.
all-features = true
[advisories]
version = 2
# Vulnerabilities and yanked crates always fail. "unmaintained" is scoped to
# crates this workspace depends on directly, so we are accountable for our own
# choices without failing CI on unmaintained deep-transitive crates we cannot
# control.
unmaintained = "workspace"
yanked = "deny"
# Reviewed advisories consciously accepted go here, each with a rationale.
ignore = []
[licenses]
version = 2
# Permissive licenses compatible with distributing a BSL-1.0 workspace.
allow = [
"BSL-1.0",
"MIT",
"MIT-0",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Zlib",
"MPL-2.0",
"Unicode-3.0",
# Mozilla root-certificate bundle (webpki-root-certs), pulled by
# rustls-platform-verifier (reqwest's `rustls` feature) for targets with
# no OS trust store, wasm32 only; a permissive data license.
"CDLA-Permissive-2.0",
"CC0-1.0",
"Unlicense",
"0BSD",
]
confidence-threshold = 0.8
# cfg_block (via turso_core, which only `shared-error-source`'s optional
# `database` feature reaches) names its LICENSE file but sets no SPDX
# expression; the file is the Apache-2.0 notice. A changed file changes the
# hash, and cargo-deny falls back to scanning it.
[[licenses.clarify]]
crate = "cfg_block"
expression = "Apache-2.0"
license-files = [{ path = "LICENSE", hash = 0xc9663a1e }]
[bans]
# Warn on duplicate versions of the same crate so unification regressions are
# visible without hard-failing a large native-dependency graph.
multiple-versions = "warn"
wildcards = "warn"
# Workspace crates are all `publish = false` and reference each other by path,
# which cargo-deny otherwise reports as wildcard dependencies.
allow-wildcard-paths = true
# JSON the gateway stores or compares must round-trip with canonical (sorted)
# object keys, which `preserve_order` would replace with insertion order for
# every crate in the graph.
[[bans.features]]
crate = "serde_json"
deny = ["preserve_order"]
[sources]
# Only crates.io is an allowed registry; no git sources are expected.
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]