Skip to content

Commit c2d9ef1

Browse files
authored
Fix cargo-deny configuration and add licenses (#8)
- Add deny.toml configuration for cargo-deny - Specify allowed licenses including Unicode-3.0 - Add MIT OR Apache-2.0 license to both workspace crates - Remove deprecated configuration options
1 parent 43308fe commit c2d9ef1

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

deny.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# cargo-deny configuration
2+
3+
[advisories]
4+
# The advisories section is used to detect crates with security vulnerabilities
5+
db-path = "~/.cargo/advisory-db"
6+
db-urls = ["https://github.com/rustsec/advisory-db"]
7+
yanked = "warn"
8+
9+
[licenses]
10+
# List of explicitly allowed licenses
11+
allow = [
12+
"MIT",
13+
"Apache-2.0",
14+
"Apache-2.0 WITH LLVM-exception",
15+
"BSD-2-Clause",
16+
"Unicode-3.0",
17+
"Unlicense",
18+
]
19+
20+
# The confidence threshold for detecting a license from license text
21+
confidence-threshold = 0.8
22+
23+
[bans]
24+
# Lint level for when multiple versions of the same crate are detected
25+
multiple-versions = "warn"
26+
wildcards = "allow"
27+
highlight = "all"
28+
29+
# List of explicitly disallowed crates
30+
deny = []
31+
32+
# Skip certain crates when checking for duplicates
33+
skip = []
34+
35+
# Similarly named crates that are allowed to coexist
36+
skip-tree = []
37+
38+
[sources]
39+
# Lint level for what to happen when a crate from a crate registry that is not in the allow list is encountered
40+
unknown-registry = "warn"
41+
unknown-git = "warn"
42+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
43+
allow-git = []

wskdf-cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "wskdf-cli"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT OR Apache-2.0"
56

67

78
[dependencies]

wskdf-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "wskdf-core"
33
version = "0.1.0"
44
edition = "2024"
5+
license = "MIT OR Apache-2.0"
56

67
[dependencies]
78
alkali = { version = "0.3", optional = true }

0 commit comments

Comments
 (0)