You need to have the Rust tool belt for developing KDash
Install Rust tool belt following this. This will install rustup
, rustc
and cargo
- kubectl for local testing
- Clone this repo
- Run
cargo test
to setup hooks - Make changes
- Run the application using
make run
orcargo run
- Commit changes. This will trigger pre-commit hooks that will run format, test and lint. If there are errors or warnings from Clippy, fix them
- Push to your clone. This will trigger pre-push hooks that will run lint and test
- Create a PR
- There are other commands that are configured on the Makefile. If you have make installed then you can use those directly
- For
make test-cov
you need to install tarpaulin withcargo install cargo-tarpaulin
- For
make analyse
you need to install geiger withcargo install cargo-geiger