Best practice engineering skills for open source Rust/WebAssembly development.
- Correctness First: Prove code works correctly before optimizing (run -> test -> benchmark)
- Safety First: Leverage Rust's type system to prevent bugs at compile time
- Test Everything: No code without corresponding tests
- Zero Warnings: Code must compile without warnings or linting issues
Follow the disciplined V-model phases:
- Research (
@disciplined-research) - Understand before designing - Design (
@disciplined-design) - Plan before coding - Specification (
@disciplined-specification) - Clarify edge cases - Implementation (
@disciplined-implementation) - Execute with tests - Verification (
@disciplined-verification) - Unit/integration testing - Validation (
@disciplined-validation) - UAT and sign-off
- Use
cargo clippywith no warnings - Use
cargo fmtfor formatting - Prefer
thiserrorfor library errors,anyhowfor applications - Document all public items with rustdoc
- Add
# Examples,# Errors,# Panicssections as needed
- Unit tests for all public functions
- Integration tests for module interactions
- Property-based tests for complex logic (proptest)
- Regression tests BEFORE optimizations
Follow conventional commits:
feat:New featuresfix:Bug fixesdocs:Documentationtest:Testsrefactor:Code changes without feature/fixperf:Performance improvements