Skip to content

Commit 2bd32f2

Browse files
authored
chore(ci): add cargo-deny check (#60)
1 parent 181e283 commit 2bd32f2

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ jobs:
3838
- uses: actions-rs-plus/clippy-check@v2
3939
with:
4040
args: --all --all-features --all-targets
41+
42+
cargo-deny:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: EmbarkStudios/cargo-deny-action@v1

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bitstream-io = "2.0.0"
2626
thiserror = { workspace = true }
2727

2828
[dev-dependencies]
29-
fenwick-model = { path = "./fenwick-model" }
29+
fenwick-model = { path = "./fenwick-model", version = "0.1.0" }
3030
criterion = "0.5.1"
3131
test-case = "3.0.0"
3232

deny.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[graph]
2+
all-features = true
3+
4+
[advisories]
5+
yanked = "deny"
6+
7+
[licenses]
8+
allow = [
9+
"MIT",
10+
"Apache-2.0",
11+
"Unicode-DFS-2016",
12+
#"BSD-3-Clause",
13+
]
14+
confidence-threshold = 1.0
15+
16+
[bans]
17+
wildcards = "deny"
18+
highlight = "all"

fenwick-model/Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ version = "0.1.0"
44
edition = "2021"
55
description = "fenwick-tree-based test utils for the 'arithmetic-coding' crate"
66
license = "MIT"
7-
keywords = ["compression", "encoding", "arithmetic-coding", "lossless", "fenwick-tree"]
7+
keywords = [
8+
"compression",
9+
"encoding",
10+
"arithmetic-coding",
11+
"lossless",
12+
"fenwick-tree",
13+
]
814
categories = ["compression", "encoding", "parsing"]
915
repository = "https://github.com/danieleades/arithmetic-coding"
1016

11-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
12-
1317
[dependencies]
14-
arithmetic-coding-core = { path = "../arithmetic-coding-core" }
18+
arithmetic-coding-core = { path = "../arithmetic-coding-core", version = "0.3.0" }
1519
fenwick = "2.0.0"
1620
thiserror = "1.0.30"

0 commit comments

Comments
 (0)