-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdeny.toml
94 lines (89 loc) · 3.31 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
84
85
86
87
88
89
90
91
92
93
94
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
vulnerability = "deny"
unmaintained = "warn"
yanked = "deny"
notice = "warn"
ignore = []
[licenses]
# The lint level for crates which do not have a detectable license
unlicensed = "deny"
allow = [
"MIT",
"MIT-0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"Zlib",
"CC0-1.0",
"ISC",
"Unicode-DFS-2016",
]
# List of explicitly disallowed licenses
# See https://spdx.org/licenses/ for list of possible licenses
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
deny = []
copyleft = "deny"
# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses
# * both - The license will be approved if it is both OSI-approved *AND* FSF
# * either - The license will be approved if it is either OSI-approved *OR* FSF
# * osi - The license will be approved if it is OSI approved
# * fsf - The license will be approved if it is FSF Free
# * osi-only - The license will be approved if it is OSI-approved *AND NOT* FSF
# * fsf-only - The license will be approved if it is FSF *AND NOT* OSI-approved
# * neither - This predicate is ignored and the default lint level is used
# We are doing "neither" since we are using the "allow" and "deny" lists above
allow-osi-fsf-free = "neither"
default = "deny"
confidence-threshold = 1.0 # 0.8
exceptions = [
# Marked as `publish=false` and thus `licenses.private.ignore=true` below
# { allow = ["GPL-3.0"], name = "mechaenetia_client", version = "*" },
# { allow = ["GPL-3.0"], name = "mechaenetia_client_wgpu", version = "*" },
# { allow = ["GPL-3.0"], name = "mechaenetia_engine", version = "*" },
# { allow = ["GPL-3.0"], name = "mechaenetia_server", version = "*" },
# { allow = ["GPL-3.0"], name = "mechaenetia_server_dedicated", version = "*" },
# { allow = ["GPL-3.0"], name = "mechaenetia_utils", version = "*" },
# { allow = ["GPL-3.0"], name = "xtask", version = "*" },
]
[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.
# This is true since the mechaenetia crates are not published to the official registry.
ignore = true
[bans]
# Lint level for when a crate version requirement is `*`
wildcards = "deny"
# TODO: Wtf bevy... like really?!? Check this later to remove these when that's fixed...
skip = [
{ name = "ahash" },
{ name = "base64" },
{ name = "bitflags" },
{ name = "core-foundation-sys" },
{ name = "hashbrown" },
{ name = "indexmap" },
{ name = "jni" },
{ name = "libloading" },
{ name = "nix" },
{ name = "num_enum" },
{ name = "num_enum_derive" },
{ name = "regex-automata" },
{ name = "regex-syntax" },
{ name = "syn" },
{ name = "windows" },
{ name = "windows-sys" },
{ name = "windows-targets" },
{ name = "windows_aarch64_gnullvm" },
{ name = "windows_aarch64_msvc" },
{ name = "windows_i686_gnu" },
{ name = "windows_i686_msvc" },
{ name = "windows_x86_64_gnu" },
{ name = "windows_x86_64_gnullvm" },
{ name = "windows_x86_64_msvc" },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"