🦀 ClawHub
Rust Unsafe Auditor
by @charlie-morrison
Audit Rust code for unsafe block usage — verify safety invariants, check FFI boundaries, review raw pointer operations, validate Send/Sync implementations, a...
📋 Tips & Best Practices
cargo +nightly miri test to dynamically detect undefined behaviorcargo clippy -- -W clippy::undocumented_unsafe_blocks to enforce safety commentscargo geiger to count unsafe across the dependency treecargo audit to check for known vulnerabilitiesNonNull over *mut T to encode non-null invariant in the type systembytemuck for safe type punning of POD types#![deny(unsafe_op_in_unsafe_fn)] (Rust 2024 default)TERMINAL
clawhub install rust-unsafe-auditor