tools-rust-security-install
Install the Rust security tooling (cargo-audit, cargo-deny, cargo-geiger, Miri) used for dependency-advisory and unsafe-code review
Files1
View on GitHubSKILL.md.claude/skills/tools-rust-security-install/SKILL.md
GitHubThis skill should not need sudo privileges. Read docs/agents/rust.md first —
it records which of these tools the repo runs and where Miri applies.
Prerequisites (must already be installed)
- Rust toolchain (rustup/cargo)
- A C toolchain and
pkg-config+ OpenSSL headers (cargo-geiger builds against them)
If any prerequisite is missing, inform the user and stop.
Installation Steps
Skip any tool whose --version already succeeds.
cargo-audit (RustSec advisories against
Cargo.lock):cargo audit --version || cargo install --locked cargo-auditcargo-deny (advisories, bans, sources, licenses):
cargo deny --version || cargo install --locked cargo-denycargo-geiger (unsafe usage per crate):
cargo geiger --version || cargo install --locked cargo-geigercargo-geiger 0.14+ needs rustc 1.97. If the install fails with a rustc-version error, pin the last release that supports the active toolchain (the error names it), e.g.
cargo install --locked cargo-geiger --version 0.13.0(rustc >= 1.85). If it fails on OpenSSL, report the error and continue with the other tools.Miri (undefined-behaviour checker; nightly only):
rustup +nightly component add miri rust-src cargo +nightly miri --version
Verification
cargo audit --version
cargo deny --version
cargo geiger --version
cargo +nightly miri --version
Report which tools are installed and their versions, and any that failed.
Usage notes
cargo audit— run from the repo root; scans the workspaceCargo.lock.cargo deny check advisoriesworks without config;bans/licenses/sourcesneed adeny.toml(cargo deny init), which the repo does not have yet.- Miri cannot run the FFI crates (SPDK/CUDA/RDMA). Candidates are the pure-Rust
unsafeinlib/shm-queueand thecomponent-corechannels, e.g.cargo +nightly miri test -p shm-queue.