A program that list statistics related to usage of unsafe Rust code in a Rust crate and all its dependencies.
This project is in its current state a quick-n-dirty, glued together, remix of two other cargo plugin projects: https://github.com/icefoxen/cargo-osha and https://github.com/sfackler/cargo-tree.
cargo install cargo-geiger
cargo geiger
--help
flags, they are inherited from cargo-tree
and may not work as intended. TODO: Review and update command line flags.When and why to use unsafe Rust is out of scope for this project, it is simply a tool that provides information to aid auditing and hopefully to guide dependency selection. It is however the opinion of the author of this project that libraries choosing to abstain from unsafe Rust usage when possible should be promoted.
This project is an attempt to create pressure against unnecessary usage of unsafe Rust in public Rust libraries.
https://en.wikipedia.org/wiki/Geiger_counter
Unsafe Rust and ionizing radiation have something in common, they are both inevitable in some situations and both should preferably be safely contained!
.rs
file per core should
be parsed at all times.