-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdeny.toml
More file actions
85 lines (79 loc) · 2.74 KB
/
Copy pathdeny.toml
File metadata and controls
85 lines (79 loc) · 2.74 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
# Configuration for https://github.com/EmbarkStudios/cargo-deny
# Install: cargo install cargo-deny
# Run: cargo deny check
# This section is considered when running `cargo deny check advisories`
# More documentation for the advisories section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
unmaintained = "workspace"
yanked = "warn"
ignore = [
# Add advisory IDs or yanked crates to ignore here
# { crate = "some-crate@1.0.0", reason = "explanation" },
{ id = "RUSTSEC-2026-0192", reason = "ttf-parser is unmaintained but reached only through the optional usls example dependency, and the ab_glyph and imageproc chain has no maintained replacement to move to yet" },
]
# This section is considered when running `cargo deny check licenses`
# More documentation for the licenses section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
[licenses]
# Allow only OSI-approved and FSF Free licenses by default
# See https://spdx.org/licenses/ for full list
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"Unicode-DFS-2016",
"Unicode-3.0",
"NCSA",
"Unlicense",
"Zlib",
"0BSD",
"MPL-2.0",
"CDLA-Permissive-2.0",
"AGPL-3.0-or-later",
"AGPL-3.0",
]
confidence-threshold = 0.8
exceptions = [
# Add exceptions here for specific crates
# { allow = ["AGPL-3.0"], name = "your-crate" },
]
[[licenses.clarify]]
name = "ring"
expression = "MIT AND ISC AND OpenSSL"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
# This section is considered when running `cargo deny check bans`
# More documentation for the bans section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
multiple-versions = "warn"
wildcards = "allow"
highlight = "all"
# Certain crates/versions that will be skipped when doing duplicate detection
skip = [
# Add specific crate versions to skip here
# { name = "some-crate", version = "0.1.0" },
]
skip-tree = [
# Add entire crate trees to skip here
# { name = "some-crate", version = "0.1.0" },
]
deny = [
# Add crates to ban entirely here
# { name = "bad-crate", wrappers = [] },
]
# This section is considered when running `cargo deny check sources`
# More documentation for the sources section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = ["https://github.com/pykeio/ort.git"]
[sources.allow-org]
github = ["ultralytics"]