rust
Installation
SKILL.md
Non-negotiable rules:
- Identify the subsystem before coding. Load only the relevant references.
- Safe Rust by default.
unsafeonly when justified — everyunsafeblock gets a// SAFETY:comment. - Zero-copy where possible. mmap'd segments,
&str/&[u8]references into pages. Never copy data without reason. - Error types per crate.
thiserrorenums in library crates. Neveranyhowin libraries — only in binaries/tests. - Async with tokio. All I/O is async. CPU-bound work on
spawn_blocking. Never block the tokio runtime. - Workspace crate structure. One crate per subsystem. Depend downward — never circular.
- Property tests for invariants.
proptestfor round-trips, type coercion, binary parsing.
rust
Inputs
$request: The crate, subsystem, bug, feature, or review target
Related skills