This is a Rust implementation of Bill Dueber's library_stdnums ruby gem.
To get started
- Install Rust using the command provided at https://www.rust-lang.org/tools/install
- Restart your shell
git clone git@github.com:pulibrary/library_stdnums.gitcd library_stdnums- Run
cargo test
Mutation testing
This crate uses cargo-mutants for mutation testing in CI. To run it locally:
cargo install --locked cargo-mutants
cargo mutants
Compare the performance of two branches
git checkout branch1
cargo bench
git checkout branch2
cargo bench
The second cargo bench run will run various benchmarks and, for each one, report either "Performance has improved." or "Performance has regressed."