Skip to content
Tech News
← Back to articles

Cargo-Geiger

read original more articles
Why This Matters

Cargo-Geiger is a valuable tool for the Rust ecosystem, providing developers and security auditors with statistical insights into the usage of unsafe Rust code within crates and their dependencies. By highlighting potential risks, it helps improve code safety and security practices without making definitive security judgments. Its adoption can lead to more informed decision-making in software development and maintenance.

Key Takeaways

A tool that lists statistics related to the usage of unsafe Rust code in a Rust crate and all its dependencies.

This cargo plugin was originally based on the code from two other projects:

Installation

Try to find and use a system-wide installed OpenSSL library:

cargo install --locked cargo-geiger

Or, build and statically link OpenSSL as part of the cargo-geiger executable:

cargo install --locked cargo-geiger --features vendored-openssl

Alternatively pre-built binary releases are available from GitHub releases.

Usage

Navigate to the same directory as the Cargo.toml you want to analyze. cargo geiger

... continue reading