rust-conventions
Work on Rust crates in packages/rust_viterbo. Use for crate layout, commands (fmt/clippy/test/bench), and coding conventions.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Rust Conventions (rust_viterbo)
Crates
-
geom(math) -
algorithm(symplectic capacity algorithms) -
ffi(PyO3/Maturin bindings)
Commands
-
cargo fmt -
cargo clippy --workspace --all-targets -
cargo test --workspace -
cargo test --release <filter> -
cargo bench
Conventions
- Favor pure functions with immutable types.
- Follow best practices for mathematically correct Rust code.
- Use
nalgebrafor linear algebra operations.
Testing and profiling
- Cover happy paths, edge cases, error paths.
- Benchmark only after profiling identifies hotspots.
- Document why changes are made (e.g., performance impact).
Caching
- Shared target dir:
/workspaces/worktrees/shared/target(set by worktree script).
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!