Back to skills
SKILL.md
Rules Rust
ASecurityANVIL coding rules for rust code (**/*.rs): Rust, Rust Testing.
- 5 stars
- 0 votes
- 0 copies
- 0 views
- Added November 30, 2026
Works with
Security analysis
100/100npx -y skills add AdityaaaTiwari/ANVIL --skill rules-rust --agent claude-codeAre you the author of Rules Rust?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-rules-rust)---
name: rules-rust
description: "ANVIL coding rules for rust code (**/*.rs): Rust, Rust Testing."
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# ANVIL rules: rust
Follow these rules for rust code (**/*.rs).
## Rust
# Rust
- Return `Result` for recoverable errors; avoid `unwrap()`/`expect()` outside tests and proven invariants.
- Every `unsafe` block carries a `// SAFETY:` comment.
- `cargo fmt` and `cargo clippy -- -D warnings` clean.
## Rust Testing
# Rust Testing
- Unit tests in `#[cfg(test)]` modules; integration tests in `tests/`.
- Property tests (proptest) for parsers and invariants.
- `cargo test` and `cargo clippy` clean in CI.
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.