cargo-geiger

rust
apache-2.0, mit

Detects usage of unsafe Rust in a Rust crate and its dependencies.

image preview of cargo-geiger

cargo-geiger is a cargo subcommand that scans a Rust project (including all of its dependencies) for any usage of unsafe code.

 

It analyzes your project's source and its dependencies, then produces a tree view of the dependency graph annotated with statistics about unsafe usage. Crates that declare #![forbid(unsafe_code)] (forbidding unsafe) are marked accordingly, helping you identify which dependencies are entirely safe code and which contain some unsafe components.

 

It also generates a safety report that highlights how many unsafe code blocks and functions are present in each crate, acting like a geiger counter for your codebase by measuring the "radioactivity" of unsafe Rust in your dependency tree.

 

cargo-geiger is valuable for Rust developers and teams concerned with code safety. It allows you to quickly gauge the "safety health" of your project, which is especially important in security-sensitive applications or when vetting third-party libraries.

Get Updates On Terminal Trove.

No spam, just updates on Terminal Trove. See an example update.