Skip to content

Commit

Permalink
ci(actions): ✅ add dependency graph check with cargo-deny
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Mar 19, 2024
1 parent a90fa24 commit 7a9375b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: moonrepo/setup-rust@v1
with:
channel: stable
bins: cargo-deb, cargo-hack
bins: cargo-deb, cargo-hack, cargo-deny
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
Expand All @@ -40,3 +40,5 @@ jobs:
path: target/debian/*.deb
- name: Check for MSRV compliance
run: cargo hack check --rust-version --all-targets --each-feature --workspace
- name: Check dependency graph
run: cargo deny --all-features --workspace check
23 changes: 23 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[graph]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
]

[licenses]
allow = [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unicode-DFS-2016",
]

[[bans.skip]]
crate = "[email protected]"
reason = "Upstream https://github.com/tokio-rs/prost/issues/1009"

[[bans.skip-tree]]
crate = "[email protected]"
reason = "tonic 0.11.0 is not compatible with tokio 1.0"
2 changes: 2 additions & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
name = "xtask"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 7a9375b

Please sign in to comment.