Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.61 KB

File metadata and controls

74 lines (52 loc) · 1.61 KB

Contributing

Workflow

1. Create branch from issue number

git checkout -b 123

Branch name = issue number only.

2. Commit format

git commit -m "#123 feat: add custom class support"

Format: #<issue> <type>: <description>

Types: feat, fix, docs, refactor, test, chore

3. Create PR

  • Title: 123
  • Description must include: Closes #123

Before commit

Run locally:

cargo +nightly fmt
cargo clippy -- -D warnings
cargo test

CI checks

Check Command
Format cargo +nightly fmt --check
Lint cargo clippy -- -D warnings
Test cargo test
Coverage cargo llvm-cov (95%+ required)

Code standards

Rule Example
No unwrap() / expect() Use ? or .ok_or()
No unnecessary clone() Pass references
:: only in imports use foo::bar ok, foo::bar() bad
Doc comments on public items /// Description
Max line width 99 chars

Full guidelines

See RustManifest

Wiki

The GitHub wiki is generated from the wiki/ directory in this repository — do not edit wiki pages directly on GitHub. Change the Markdown files under wiki/ in the same PR as your code change; on merge to main, the Publish Wiki workflow force-syncs the directory to the wiki. Pages exist in five languages (English plus Spanish, Russian, Korean and Chinese translations); update all of them when you touch a documented feature.