Skip to content

Commit e1ed552

Browse files
committed
chore: added cargo-deny
1 parent 521e83f commit e1ed552

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,24 @@ jobs:
9494
target/
9595
- name: Cargo doc
9696
run: cargo doc --no-deps --document-private-items --locked
97+
98+
licensing:
99+
name: Licenses
100+
runs-on: "ubuntu-latest"
101+
steps:
102+
- name: Checkout Code
103+
uses: actions/checkout@v4
104+
- name: Rust cache
105+
uses: Swatinem/rust-cache@v2
106+
with:
107+
shared-key: "licensing-cache"
108+
cache-all-crates: "true"
109+
cache-directories: |
110+
~/.cargo/registry/index/
111+
~/.cargo/registry/cache/
112+
~/.cargo/git/db/
113+
target/
114+
- uses: EmbarkStudios/cargo-deny-action@v2.0.12
115+
with:
116+
manifest-path: ./Cargo.toml
117+
command: check

deny.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[graph]
2+
all-features = true
3+
4+
[advisories]
5+
unmaintained = "workspace"
6+
ignore = [
7+
]
8+
9+
[bans]
10+
multiple-versions = "deny"
11+
wildcards = "deny"
12+
allow-wildcard-paths = true
13+
14+
[sources]
15+
unknown-registry = "deny"
16+
unknown-git = "deny"
17+
18+
[licenses]
19+
confidence-threshold = 0.95
20+
allow = [
21+
"Apache-2.0",
22+
"MIT",
23+
]
24+
exceptions = [
25+
# Each entry is the crate and version constraint, and its specific allow
26+
# list
27+
{ crate = "unicode-ident", allow = ["Unicode-3.0"] },
28+
]

0 commit comments

Comments
 (0)