Skip to content

Commit 34ac711

Browse files
authored
ci: Use cargo-deny graph option (#437)
`cargo-deny`'s graph option could be used to ignore `dev-dependencies`.
1 parent 81084f5 commit 34ac711

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/deny.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v6
22-
- name: Ignore dev-dependencies
23-
run: sed -i 's/\[dev-dependencies\]/[workaround-avoid-dev-deps]/g' Cargo.toml
2422
- uses: EmbarkStudios/cargo-deny-action@v2
2523
with:
2624
command: check bans licenses sources

deny.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[graph]
2+
all-features = true
3+
exclude-dev = true
4+
15
[advisories]
26
ignore = [
37
]
@@ -7,14 +11,10 @@ allow = [
711
"MIT",
812
"Apache-2.0",
913
"BSD-3-Clause",
10-
"Unicode-3.0",
1114
"bzip2-1.0.6",
1215
]
1316

1417
[bans]
1518
multiple-versions = "warn"
1619
skip = [
1720
]
18-
skip-tree = [
19-
{ name = "proptest", version = "1.0" },
20-
]

0 commit comments

Comments
 (0)