-
Notifications
You must be signed in to change notification settings - Fork 1
/
deny.toml
83 lines (77 loc) · 3.07 KB
/
deny.toml
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
# 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]
version = 2
ignore = ["RUSTSEC-2023-0071"]
# 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]
version = 2
# List of explicitly allowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
allow = [
"Apache-2.0",
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"Unicode-DFS-2016",
"MPL-2.0",
"BSD-2-Clause",
]
# The confidence threshold for detecting a license from license text.
# The higher the value, the more closely the license text must be to the
# canonical license text of a valid SPDX license file.
# [possible values: any between 0.0 and 1.0].
confidence-threshold = 0.8
[[licenses.clarify]]
name = "ring"
expression = "LicenseRef-ring"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]
[licenses.private]
# If true, ignores workspace crates that aren't published, or are only
# published to private registries.
# To see how to mark a crate as unpublished (to the official registry),
# visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field.
ignore = true
# This section is considered when running `cargo deny check bans`.
# More documentation about the 'bans' section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
# Lint level for when multiple versions of the same crate are detected
multiple-versions = "deny"
skip = [
"block-buffer:0.9.0", # gf256 v0.3.0
"convert_case:0.4.0", # gf256 v0.3.0
"der:0.6.1", # gf256 v0.3.0
"digest:0.9.0", # gf256 v0.3.0
"itertools:0.10.5", # gf256 v0.3.0
"pem-rfc7468:0.6.0", # gf256 v0.3.0
"pkcs8:0.9.0", # gf256 v0.3.0
"sha2:0.9.9", # gf256 v0.3.0
"spki:0.6.0", # gf256 v0.3.0
"hermit-abi:0.3.9", # fastcrypto v0.1.8
]
skip-tree = [
# Some crates manipulating prints to stdout depend on an older version of windows-sys
{ name = "windows-sys", depth = 3, version = "0.48" },
{ name = "windows-sys", depth = 3, version = "0.52" },
# The crate gf256 v0.3.0 depend on an older version of darling
{ name = "darling", depth = 3, version = "0.12.4" },
]
# This section is considered when running `cargo deny check sources`.
# More documentation about the 'sources' section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
[sources]
# Lint level for what to happen when a crate from a crate registry that is not
# in the allow list is encountered
unknown-registry = "deny"
# Lint level for what to happen when a crate from a git repository that is not
# in the allow list is encountered
unknown-git = "deny"
allow-git = []
[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = []