forked from vmware-labs/wasm-workers-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deny.toml
90 lines (84 loc) · 3.19 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
# Here you can find the related documentation:
# https://embarkstudios.github.io/cargo-deny/index.html
# Specify the targets we're building for, so dependencies that are specific
# for other targets are ignored.
targets = [
{ triple = "x86_64-unknown-linux-musl" },
{ triple = "aarch64-unknown-linux-musl" },
{ triple = "x86_64-apple-darwin" },
{ triple = "aarch64-apple-darwin" },
{ triple = "x86_64-pc-windows-msvc" },
{ triple = "aarch64-pc-windows-msvc" },
]
# I'm excluding these packages as cargo deny is failing due to a missing license
# in the package definition [1]. The project license is Apache-2.0 as stated in the
# LICENSE file [2].
#
# I tried to use a license.clarify option to better document this [3]. However, this
# option requires to specify the LICENSE file you're pointing to. Since the crate doesn't
# include the LICENSE file (it's part of the cargo workspace), it cannot find it [4].
#
# For these reasons I added them as excluded packages for now. I introduced this
# exception on https://github.com/vmware-labs/wasm-workers-server/pull/168.
#
# - [1] https://github.com/fermyon/wit-bindgen-backport/blob/b89d5079ba5b07b319631a1b191d2139f126c976/crates/wasmtime-impl/Cargo.toml
# - [2] https://github.com/fermyon/wit-bindgen-backport/blob/b89d5079ba5b07b319631a1b191d2139f126c976/LICENSE
# - [3] https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html#the-clarify-field-optional
# - [4] https://github.com/EmbarkStudios/cargo-deny/issues/373
exclude = [
"wit-parser",
"wit-bindgen-wasmtime-impl",
"wit-bindgen-wasmtime",
"wit-bindgen-gen-wasmtime",
"wit-bindgen-gen-rust",
"wit-bindgen-gen-core"
]
# More documentation for the advisories section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
[advisories]
vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
# A list of advisory IDs to ignore.
ignore = [
#"RUSTSEC-0000-0000",
]
# More documentation for the licenses section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
[licenses]
# The lint level for crates which do not have a detectable license
unlicensed = "deny"
copyleft = "deny"
# List of explicitly allowed licenses
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
"Zlib"
]
# More documentation about the 'bans' section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
# In the future we will work on enabling just only certain
# duplicated versions
multiple-versions = "warn"
# List of crates to deny
deny = [
# Each entry the name of a crate and a version range. If version is
# not specified, all versions will be matched.
#{ name = "ansi_term", version = "=0.11.0" },
#
# Wrapper crates can optionally be specified to allow the crate when it
# is a direct dependency of the otherwise banned crate
#{ name = "ansi_term", version = "=0.11.0", wrappers = [] },
]
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
#{ name = "ansi_term", version = "=0.11.0" },
]