cargo-geiger
« Back to VersTracker
Description:
Detects usage of unsafe Rust in a Rust crate and its dependencies
Type: Formula  |  Latest Version: 0.13.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust security static-analysis unsafe cargo
Install: brew install cargo-geiger
About:
cargo-geiger is a Cargo subcommand that scans Rust projects and their dependency trees for usage of unsafe code. It provides a detailed report, helping developers identify and audit potential memory safety risks. This tool is essential for maintaining high safety standards in Rust applications.
Key Features:
  • Scans entire dependency trees for unsafe usage
  • Provides both machine-readable (JSON) and human-readable output
  • Integrates with Cargo as a subcommand for easy use
  • Can be configured to fail builds based on unsafe thresholds
Use Cases:
  • Auditing existing projects to understand unsafe code footprint
  • Enforcing safety policies in CI/CD pipelines
  • Evaluating third-party crates for security risks before adoption
Alternatives:
  • cargo-audit – Focuses on known security vulnerabilities in dependencies, whereas cargo-geiger specifically detects unsafe code usage.
  • cargo-crev – Provides a peer-review based trust system for crates, which is a different approach to ensuring crate safety compared to static analysis.
License: Apache-2.0 OR MIT
Dependencies: openssl@3
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit