forked from lernza/lernza
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeny.toml
More file actions
65 lines (57 loc) · 1.45 KB
/
Copy pathdeny.toml
File metadata and controls
65 lines (57 loc) · 1.45 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
# cargo-deny configuration for Lernza contracts
# Checks for security advisories, license issues, and banned dependencies
[licenses]
version = 2
unlicensed = "deny"
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-3-Clause",
"BSD-2-Clause",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-3.0",
"Unicode-DFS-2016",
"Unlicense",
"Zlib",
]
# Skip license checks for dev dependencies
[licenses.dev-dependencies]
unlicensed = "deny"
# Security advisories - this is the main focus for issue #759
[advisories]
version = 2
# Vulnerability database source
db-url = "https://github.com/rustsec/advisory-db"
# Ignore advisories for optional/development-only crates
ignore = [
# Add advisory IDs to ignore here when explicitly reviewed and accepted
# Format: "RUSTSEC-0000-0000"
]
# Deny known vulnerabilities (fail the build on CVEs)
[vulns]
version = 2
# Banned dependencies - fail if these are used
[bans]
version = 2
deny = [
{ name = "std::os::raw", version = "*" },
]
# Allow specific crates with known issues but acceptable for our use case
allow = [
{ name = "soroban-sdk" },
{ name = "stellar-xdr" },
]
# Skip bans for dev dependencies
[bans.dev-dependencies]
deny = []
# Sources configuration
[sources]
version = 2
unknown-git-registry = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = [
"https://github.com/stellar/rs-soroban-sdk",
"https://github.com/rust-lang/rust",
]