Shared conventions for the Rust workspace and accompanying documentation.
- Keep examples runnable from the repository root unless the document states otherwise.
- Prefer small, composable changes over broad refactors without tests.
- Update Markdown when behavior, commands, paths, or configuration change.
- Run
cargo fmt --allbefore opening a PR. - Run
cargo clippy --workspace --all-targetsfor non-trivial code changes. - Prefer explicit error propagation and typed errors at library boundaries.
- Keep crate APIs focused and avoid leaking implementation details across workspace boundaries.
- Add tests alongside behavior changes whenever practical.
- Keep example contracts small and runnable.
- Document any required keys, ports, or deploy sequence near the example itself.
- Prefer release-mode validation for performance-sensitive interpreter examples.
- Prefer Rust-only terminology in this repository.
- Keep command blocks copy-pasteable.
- Link to the nearest relevant README instead of duplicating long setup sections.