Sitelet https://github.com/ethereum-optimism/optimism/commit/02624e8997fcbd005cb896c44993e2b5f59fae45
Skip to content

Commit 02624e8

Browse files
ajsuttonclaude
andauthored
chore(rust): add just target for cargo-deny (#19520)
Add a `deny` target to the Rust justfile that runs `cargo deny --all-features check all`, and update CI to use it instead of invoking cargo deny directly. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5d9ae15 commit 02624e8

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎.circleci/continue/rust-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ workflows:
11481148
- rust-ci-deny:
11491149
name: rust-deny
11501150
directory: rust
1151-
command: "cargo deny --all-features check all"
1151+
command: "just deny"
11521152
context: *rust-ci-context
11531153

11541154
- rust-ci-typos:

‎docs/ai/rust-dev.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ This builds affected crates for the `riscv32imac-unknown-none-elf` target.
9898

9999
The workspace uses `cargo-deny` for license, advisory, and dependency checks. Configuration is in `rust/deny.toml`.
100100

101+
```bash
102+
cd rust
103+
just deny
104+
```
105+
101106
## Before Every Commit
102107

103108
Run these checks from `rust/`. Fix all issues — CI enforces zero warnings.

‎rust/justfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ bench:
130130

131131
########################## Misc tools ###############################
132132

133+
# Audit dependencies for licenses, advisories, and bans
134+
deny:
135+
cargo deny --all-features check all
136+
133137
# Check for unused dependencies (requires nightly + cargo-udeps)
134138
check-udeps:
135139
cargo +{{NIGHTLY}} udeps --release --workspace --all-features --all-targets

0 commit comments

Comments
 (0)