golb

Rust

Install rust and tools

Guides

Cargo commands

cargo doc --lib --no-deps --all-features

cargo clippy --all-targets --all-features -- -D warnings

# timings build
cargo build --timings

Tests

cargo test --features feat,second
cargo test -- --nocapture

List installed packages

cargo install --list

Tests with cargo-hack

cargo +stable install cargo-hack --locked

cargo hack check --feature-powerset --all-targets
cargo hack test --feature-powerset --all-targets

https://github.com/taiki-e/cargo-hack

Update all installed packages

cargo install cargo-update
cargo install-update -a

https://github.com/nabijaczleweli/cargo-update

Test coverage

cargo +stable install cargo-llvm-cov --locked
cargo llvm-cov --html
cd target/llvm-cov/html && python -m http.server

https://github.com/taiki-e/cargo-llvm-cov