| name | rust-workflows |
| description | Essential workflows for building, testing, linting, formatting, running with logs, and compiling for WebAssembly or desktop in Octant. Use when running checks, tests, or build commands. |
Rust Workflows for Octant
This skill provides the standard runbooks for checking, building, linting, testing, and debugging Octant.
1. Code Quality & Linting
Always run formatting and clippy before submitting changes.
cargo fmt --all -- --check
cargo fmt --all
cargo clippy --all-targets -- -D warnings
2. Running Tests
Octant has unit tests and integration tests in tests/.
cargo test
cargo test --test volume_animation_tests
cargo test --test zarr_v3_test
cargo test --test date_tests
cargo test --test grid_tests
cargo test --test pyramid_tests
cargo test -- --nocapture
3. Running Octant Locally
Run Octant natively on desktop with configurable logging levels:
cargo run
RUST_LOG=octant=debug,wgpu=warn cargo run
RUST_LOG=octant=trace cargo run
cargo run --release
4. WebAssembly Checks
Octant supports WASM builds. When modifying dependencies or async runtimes, ensure WASM target compiles:
cargo check --target wasm32-unknown-unknown
5. Pre-Commit Checklist