Thank you for your interest in contributing!
- Fork and clone the repository.
- Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Build:
cargo build - Test:
cargo test - Run:
cargo run -- cpu(or any subcommand)
- Run
cargo fmtbefore committing. - Run
cargo clippy --all-features -- -D warningsand fix all warnings. - Add tests for new functionality where possible.
- Document public APIs with rustdoc.
Use conventional commits:
feat: add new featurefix: fix bugdocs: update documentationrefactor: code refactoringtest: add tests
- Create a feature branch from
main. - Make your changes and ensure tests and lint pass.
- Submit a PR with a clear description and reference any related issues.
- Address review feedback.
- Add a new file under
src/modules/(e.g.mymod.rs). - Implement the
DiagnosticModuletrait (seesrc/core/traits.rs). - Register the module in
src/modules/mod.rs(get_module,all_modules). - Add the corresponding subcommand in
src/cli/args.rsand wire it insrc/main.rs.