Skip to content

Commit e5e3278

Browse files
committed
ci(deny): move exclude-dev to config for cargo-deny 0.20
cargo-deny 0.20 removed the --exclude-dev CLI flag; the equivalent setting must now be configured in deny.toml.
1 parent a45e78e commit e5e3278

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
with:
6060
tool: cargo-deny
6161
- name: Dependency audit
62-
run: cargo deny check --exclude-dev
62+
run: cargo deny check
6363

6464
# Single test job: runs the fast suite first, then the 3-node cluster
6565
# suite (`nodedb-cluster-tests`) on the same runner. Combining them

deny.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
[graph]
1313
all-features = true
14+
# Exclude dev-dependencies from the crate graph (the `check` CLI flag
15+
# `--exclude-dev` was removed in cargo-deny 0.20; it is config-only now).
16+
exclude-dev = true
1417

1518
[advisories]
1619
version = 2

0 commit comments

Comments
 (0)