claude-skill-rust

Solid

Guide for Rust development including code style, testing, building, and quality checks using cargo tools. Apply when working with Rust code, Cargo.toml, or running cargo commands.

AI & Automation 5 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
26
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Rust Development Guide ## Code Style - Follow standard Rust conventions and idioms - Use `rustfmt` for code formatting - Configure lints in `lib.rs` (see Crate-Level Lint Configuration below) - Prefer descriptive variable and function names ## Module File Organization Prefer the modern `<module_name>.rs` style over the legacy `mod.rs` style for module files. **Preferred (modern style):** ```text src/ ├── lib.rs ├── config.rs # mod config ├── config/ │ └── parser.rs # mod config::parser ├── network.rs # mod network └── network/ ├── client.rs # mod network::client └── server.rs # mod network::server ``` **Avoid (legacy style):** ```text src/ ├── lib.rs ├── config/ │ ├── mod.rs # mod config │ └── parser.rs # mod config::parser └── network/ ├── mod.rs # mod network ├── client.rs # mod network::client └── server.rs # mod network::server ``` Benefits of the modern style: - File names directly indicate the module name (no ambiguous `mod.rs` files) - Easier navigation in editors and file browsers - Clear correspondence between module path and file path - Supported since Rust 2018 edition ## Crate-Level Lint Configuration Define lint rules at the top of `lib.rs` (or `main.rs` for binaries) rather than via command-line flags. This ensures consistent enforcement and documents project standards. ```rust #![deny(unsafe_code)] #![cfg_attr(all(not(debug_assertions), not(test)), deny(clippy::all))] #![cfg_att...

Details

Author
opencue
Repository
opencue/cuecards
Created
2 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category