From 38bf0de237607509dfae10d7eea34ea9ddb1998d Mon Sep 17 00:00:00 2001 From: jan-kubica Date: Thu, 19 Nov 2026 13:04:02 +0100 Subject: [PATCH] chore(rust): deny unused Cargo dependencies in the fuzz, size-fixture and oracle workspaces --- crates/stdnum-wasm-size-fixture/Cargo.toml | 3 +++ fuzz/Cargo.toml | 3 +++ scripts/rust-oracle/Cargo.toml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/crates/stdnum-wasm-size-fixture/Cargo.toml b/crates/stdnum-wasm-size-fixture/Cargo.toml index 00d9843c..7e67b5e1 100644 --- a/crates/stdnum-wasm-size-fixture/Cargo.toml +++ b/crates/stdnum-wasm-size-fixture/Cargo.toml @@ -19,6 +19,9 @@ validator-set = [] stella-stdnum-core = { path = "../stdnum-core" } wasm-bindgen = "=0.2.129" +[lints.cargo] +unused_dependencies = "deny" + # Keep this fixture independent so it exercises the explicit profile expected # from constrained WebAssembly consumers. [workspace] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index f31ace51..cf47d88d 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -20,6 +20,9 @@ cargo-fuzz = true libfuzzer-sys = "0.4" stella-stdnum-core = { path = "../crates/stdnum-core" } +[lints.cargo] +unused_dependencies = "deny" + # Detach from the parent workspace so `cargo build --workspace` at the repo root # never pulls in the fuzz targets or their nightly-only dependencies. [workspace] diff --git a/scripts/rust-oracle/Cargo.toml b/scripts/rust-oracle/Cargo.toml index e15cf634..443bb94c 100644 --- a/scripts/rust-oracle/Cargo.toml +++ b/scripts/rust-oracle/Cargo.toml @@ -8,3 +8,6 @@ edition = "2021" iban_validate = "5" luhn = "1" serde_json = "1" + +[lints.cargo] +unused_dependencies = "deny"