forked from mozilla/glean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deny.toml
43 lines (39 loc) · 1.3 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
[licenses]
unlicensed = "deny"
copyleft = "deny"
allow = [
"MPL-2.0",
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"Zlib",
"Unicode-DFS-2016",
]
[bans]
# Avoid duplications.
# Exceptions defined below with a reason.
multiple-versions = "deny"
skip = [
# wasi 0.10 and 0.11 are allowed
# (m-c patches 0.10 to 0.11)
{ name = "wasi", version = "0.11.0" },
# bitflags 1.3.2 is a dependency of lmdb-rkv,
# with bitflags in use by others.
# This is overriden in m-c
{ name = "bitflags", version = "1.3.2" },
]
# Avoid certain crates
deny = [
# We can allow the windows-sys and windows_$arch crates,
# now that m-c allows them (and potentially overrides some uses)
# We do not want to pull in the `windows` crate.
# We _only_ allow it as a dependency in the chain from `uniffi_core`;
# this will be overriden in m-c.
# See https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html#the-wrappers-field-optional for the wrapper configuration
# We allow the chain from uniffi_core to windows here.
{ name = "oneshot", version = "*", wrappers = ["uniffi_core"] },
{ name = "loom", version = "*", wrappers = ["oneshot"] },
{ name = "generator", version = "*", wrappers = ["loom"] },
{ name = "windows", version = "0.48.0", wrappers = ["generator"] },
]