diff --git a/templates/default/deny.toml b/templates/default/deny.toml new file mode 100644 index 0000000..0e12fce --- /dev/null +++ b/templates/default/deny.toml @@ -0,0 +1,16 @@ +[licenses] +# 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 = [ + "Apache-2.0", + "MIT", + "CAL-1.0", + "Unlicense" +] + +# The confidence threshold for detecting a license from license text. +# The higher the value, the more closely the license text must be to the +# canonical license text of a valid SPDX license file. +# [possible values: any between 0.0 and 1.0]. +confidence-threshold = 0.8 diff --git a/templates/default/rust/app/Cargo.toml b/templates/default/rust/app/Cargo.toml index 52af8e5..f1500f4 100644 --- a/templates/default/rust/app/Cargo.toml +++ b/templates/default/rust/app/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "app" edition = "2021" +license = "CAL-1.0" version.workspace = true [dependencies] diff --git a/templates/default/rust/lib/Cargo.toml b/templates/default/rust/lib/Cargo.toml index ded6285..791c3b7 100644 --- a/templates/default/rust/lib/Cargo.toml +++ b/templates/default/rust/lib/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "lib" edition = "2021" +license = "CAL-1.0" version.workspace = true [dependencies]