Skip to content
Back to skills

Rust Patterns

ASecurity

Rust patterns for the 2024 edition, unsafe code, async locks, casts, Cargo features, and 1.75 to 1.100 changes. Load before any edit to a .rs file or Cargo.toml, however small, and for Rust questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill rust-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Patterns?

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

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

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: rust-patterns
description: Rust patterns for the 2024 edition, unsafe code, async locks, casts, Cargo features, and 1.75 to 1.100 changes. Load before any edit to a .rs file or Cargo.toml, however small, and for Rust questions.
---

# Rust patterns

Default assumption: Rust 1.100 on the 2024 edition, per the Rust release notes. 1.100.1 shipped 2026-11-27, and a release ships every six weeks.

A row applies when the project's `rust-version` in `Cargo.toml`, else its installed `rustc --version`, is at least the row's version. A 2024 edition row applies when `Cargo.toml` sets `edition = "2024"`.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                                     | Read                                                     |
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Rust code, raising the toolchain, or moving a crate to the 2024 edition                            | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Rust code                                                                  | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing `unsafe`, a lint attribute, an assertion, a Cargo feature, `rust-version`, `Cargo.lock`, or a lock | [reference/practices.md](reference/practices.md)         |
| Configuring rustc lints, Clippy, rustfmt, cargo-audit, cargo-deny, or Miri                                 | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.8 KB
  • reference/anti-patterns.md5.4 KB
  • reference/practices.md1.5 KB
  • reference/tooling.md3 KB
  • reference/upgrades.md8.9 KB
  • sources.md7.5 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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