Rechercher

PythonReactSEOPDF
GitHub Skill

rust-conventions

Work on Rust crates in packages/rust_viterbo. Use for crate layout, commands (fmt/clippy/test/bench), and coding conventions.

JoernStoehler☆ 0 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

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 nalgebra for 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).

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-26
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!