Skip to content

Commit 3d988e9

Browse files
deny.toml: Add accepted licenses and cargo deny configuration
Signed-off-by: Tomás González <[email protected]>
1 parent 885a5e4 commit 3d988e9

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

deny.toml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ targets = [
4242
# If true, metadata will be collected with `--all-features`. Note that this can't
4343
# be toggled off if true, if you want to conditionally enable `--all-features` it
4444
# is recommended to pass `--all-features` on the cmd line instead
45-
all-features = false
45+
all-features = true
4646
# If true, metadata will be collected with `--no-default-features`. The same
4747
# caveat with `all-features` applies
4848
no-default-features = false
@@ -64,9 +64,9 @@ feature-depth = 1
6464
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
6565
[advisories]
6666
# The path where the advisory databases are cloned/fetched into
67-
#db-path = "$CARGO_HOME/advisory-dbs"
67+
db-path = "~/.cargo/advisory-dbs"
6868
# The url(s) of the advisory databases to use
69-
#db-urls = ["https://github.com/rustsec/advisory-db"]
69+
db-urls = ["https://github.com/rustsec/advisory-db"]
7070
# A list of advisory IDs to ignore. Note that ignored advisories will still
7171
# output a note when they are encountered.
7272
ignore = [
@@ -85,13 +85,17 @@ ignore = [
8585
# More documentation for the licenses section can be found here:
8686
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
8787
[licenses]
88+
unlicensed = "deny"
8889
# List of explicitly allowed licenses
8990
# See https://spdx.org/licenses/ for list of possible licenses
9091
# [possible values: any SPDX 3.11 short identifier (+ optional exception)].
9192
allow = [
92-
#"MIT",
93-
#"Apache-2.0",
94-
#"Apache-2.0 WITH LLVM-exception",
93+
"MIT",
94+
"Apache-2.0",
95+
"BSD-3-Clause",
96+
"Apache-2.0 WITH LLVM-exception",
97+
"Unicode-DFS-2016",
98+
"ISC",
9599
]
96100
# The confidence threshold for detecting a license from license text.
97101
# The higher the value, the more closely the license text must be to the
@@ -228,8 +232,8 @@ allow-git = []
228232

229233
[sources.allow-org]
230234
# 1 or more github.com organizations to allow git sources for
231-
github = [""]
235+
# github = [""]
232236
# 1 or more gitlab.com organizations to allow git sources for
233-
gitlab = [""]
237+
# gitlab = [""]
234238
# 1 or more bitbucket.org organizations to allow git sources for
235-
bitbucket = [""]
239+
# bitbucket = [""]

0 commit comments

Comments
 (0)