- Built and developed using - Rust stable(
rustc 1.78.0
) or higher. - If you are working on both
staking
andrewards
contracts use:
rustup override set <toolchain>
to get rid of manual version switching.
- Built and developed using - Solana version
1.18.9
or higher. - To switch Solana version use -
solana-install init <VERSION>
.
- To build contract use
cargo build-bpf
. - Run Rust based tests use -
cargo test-bpf
.
- Run
cargo clippy --all-targets --all-features --workspace -- -D warnings
before pushing your changes. - Run
cargo +nightly fmt
before pushing your changes.