This is a Rust project, so rustup is the best place to start.
This is a pure rust project, so only cargo is needed.
cargo checkto analyze the current package and report errors.cargo buildto compile the current package.cargo clippyto catch common mistakes and improve code.cargo testto run unit tests (see notes on snapshot testing below).cargo benchto run benchmark tests.
Useful tips:
- Check/Build/Test/Clippy all code:
cargo <cmd> --all-targets --workspace - Test specific function:
cargo test multiple_local_parent
The core fastrace crate uses Insta Snapshot testing locally. Be aware that to properly run tests,
you will ideally need to have cargo-insta installed in your local rust toolchain to be able to review changes to tests
where the snapshots have changed, and thus prevent CI from breaking in such instances.
For more information on cargo-insta read the official documentation here.
Please open a new issue.