forked from Vera3289/paystream-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
74 lines (66 loc) · 2.46 KB
/
deny.toml
File metadata and controls
74 lines (66 loc) · 2.46 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
# cargo-deny configuration
# Docs: https://embarkstudios.github.io/cargo-deny/
#
# Run locally: cargo deny check
# CI: see .github/workflows/license-check.yml
[graph]
# Check all targets, including wasm32-unknown-unknown
targets = [
{ triple = "wasm32-unknown-unknown" },
{ triple = "x86_64-unknown-linux-gnu" },
]
# ---------------------------------------------------------------------------
# Licenses
# ---------------------------------------------------------------------------
[licenses]
# All crates must satisfy at least one of the licenses listed here.
# Any crate whose license expression cannot be satisfied by this list will
# cause `cargo deny check licenses` to fail.
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MIT",
"MIT-0",
"ISC",
"BSD-2-Clause",
"BSD-3-Clause",
"Unicode-3.0",
"Unicode-DFS-2016",
"Zlib",
"CC0-1.0",
]
# Warn (rather than error) when a license is in the allow list but unused.
unused-allowed-license = "warn"
# Minimum confidence threshold for license text detection (0.0–1.0).
# 0.8 is the cargo-deny default; keep it explicit.
confidence-threshold = 0.8
# Dev-dependencies are not shipped in the final WASM artifact, but we still
# check them to avoid accidentally pulling in a GPL crate during testing.
include-dev = true
# ---------------------------------------------------------------------------
# Advisories (vulnerability database)
# ---------------------------------------------------------------------------
[advisories]
# Fetch the RustSec advisory database on every run.
db-urls = ["https://github.com/rustsec/advisory-db"]
db-path = "~/.cargo/advisory-db"
# Fail on any unignored vulnerability or unmaintained crate warning.
vulnerability = "deny"
unmaintained = "warn"
yanked = "deny"
notice = "warn"
# ---------------------------------------------------------------------------
# Bans (duplicate / forbidden crates)
# ---------------------------------------------------------------------------
[bans]
# Deny multiple versions of the same crate to keep the dependency tree clean.
multiple-versions = "warn"
# Deny wildcard dependencies.
wildcards = "deny"
# ---------------------------------------------------------------------------
# Sources (allowed registries / git hosts)
# ---------------------------------------------------------------------------
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]