-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeny.toml
More file actions
94 lines (83 loc) · 1.85 KB
/
deny.toml
File metadata and controls
94 lines (83 loc) · 1.85 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Cargo Deny Configuration for Phobos
# https://embarkstudios.github.io/cargo-deny/
# Note: Running these checks:
# cargo install cargo-deny
# cargo deny check
[advisories]
# Security vulnerability database
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = [
# Add advisory IDs to ignore here if needed
# "RUSTSEC-2020-0001",
]
[licenses]
# License checking
unlicensed = "deny"
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"CC0-1.0",
"Zlib",
"0BSD",
"BSL-1.0",
]
deny = [
"GPL-1.0",
"GPL-2.0",
"GPL-3.0",
"AGPL-1.0",
"AGPL-3.0",
]
copyleft = "warn"
allow-osi-fsf-free = "both"
default = "deny"
confidence-threshold = 0.8
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
[licenses.private]
ignore = false
registries = []
[bans]
# Banned crates
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
skip = [
# Skip version checks for common duplicates
{ name = "windows-sys", version = "*" },
{ name = "windows_x86_64_msvc", version = "*" },
{ name = "windows_x86_64_gnu", version = "*" },
]
skip-tree = [
# Skip entire dependency trees if needed
]
# Specific crate bans
deny = [
# Add crates to ban here
# { name = "unsafe-crate", version = "*" },
]
[sources]
# Source repository configuration
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
[sources.allow-org]
# Allow all crates from these GitHub orgs
github = ["ibrahmsql"]