Skip to content

Commit

Permalink
deny.toml: Add accepted licenses and cargo deny configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed May 22, 2024
1 parent 885a5e4 commit 3d988e9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ targets = [
# If true, metadata will be collected with `--all-features`. Note that this can't
# be toggled off if true, if you want to conditionally enable `--all-features` it
# is recommended to pass `--all-features` on the cmd line instead
all-features = false
all-features = true
# If true, metadata will be collected with `--no-default-features`. The same
# caveat with `all-features` applies
no-default-features = false
Expand All @@ -64,9 +64,9 @@ feature-depth = 1
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
[advisories]
# The path where the advisory databases are cloned/fetched into
#db-path = "$CARGO_HOME/advisory-dbs"
db-path = "~/.cargo/advisory-dbs"
# The url(s) of the advisory databases to use
#db-urls = ["https://github.com/rustsec/advisory-db"]
db-urls = ["https://github.com/rustsec/advisory-db"]
# A list of advisory IDs to ignore. Note that ignored advisories will still
# output a note when they are encountered.
ignore = [
Expand All @@ -85,13 +85,17 @@ ignore = [
# More documentation for the licenses section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
[licenses]
unlicensed = "deny"
# 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 = [
#"MIT",
#"Apache-2.0",
#"Apache-2.0 WITH LLVM-exception",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Apache-2.0 WITH LLVM-exception",
"Unicode-DFS-2016",
"ISC",
]
# The confidence threshold for detecting a license from license text.
# The higher the value, the more closely the license text must be to the
Expand Down Expand Up @@ -228,8 +232,8 @@ allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = [""]
# github = [""]
# 1 or more gitlab.com organizations to allow git sources for
gitlab = [""]
# gitlab = [""]
# 1 or more bitbucket.org organizations to allow git sources for
bitbucket = [""]
# bitbucket = [""]

0 comments on commit 3d988e9

Please sign in to comment.