This scanner recursively walks one or more paths containing extracted crate files to determine if they implement non-trivial code.
Non-trivial code is defined as:
- For a
bin
, amain.rs
that does more than justprintln!("Hello world!")
. - For a
lib
, alib.rs
that exports one or more types, functions, or pretty much anything that can sensibly have a visibility modifier.
Minimally:
cargo run -- PATH/TO/ONE/OR/MORE/EXTRACTED/CRATES
Nested Cargo.toml
manifests within a crate file may result in false positives.