alpheus-rust
Installation
SKILL.md
Alpheus Coding Style (Rust)
Overview
- use snake_case directories and files;
mod.rsin every directory-module - imports grouped
std→ external →crate::, one crate peruse, blank-line separated - use
crate::for all intra-crate paths, neverself::orsuper::(exceptuse super::*;in inline#[cfg(test)] mod tests) - prefer to annotate every local explicitly, even when inferable
- prefer a separate test workspace member; inline
#[cfg(test)] mod testsallowed per repo .unwrap()only in tests, avoid in fallible library code
These rules are enforced by the code. Violating the letter is violating the spirit.
When to Use
- creating a new file in a repo
- writing or editing any
.rsfile - asked to "match Alpheus style" / "write like Alpheus"