Skip to content
Back to skills

Rules Rust

ASecurity

ANVIL coding rules for rust code (**/*.rs): Rust, Rust Testing.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentrustgotesting

Works with

  • cli

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill rules-rust --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rules Rust?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rules Rust
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-rules-rust/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-rules-rust)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.