rc-rust

Solid

Rust as a language — ownership and lifetimes, error hierarchies with thiserror/anyhow, async with Tokio, trait design, testing, performance, clippy, and rustdoc. Use when writing or reviewing Rust code, deciding between borrowing and cloning, designing an error type, structuring async tasks and channels, or configuring lints and benchmarks. Do not use for Axum HTTP routing and middleware (rc-axum), SQLx/Postgres data access (rc-sqlx), SvelteKit (rc-sveltekit), or non-Rust languages.

API & Backend 19 stars 1 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
43
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Rust Best Practices Unified Rust guidelines covering coding style, ownership, error handling, async patterns, traits, testing, performance, linting, and documentation. Apply when writing or reviewing Rust code. ## Pair with This skill owns Rust *the language*. The stack's layers live elsewhere — reach for them instead of duplicating their guidance here: - `rc-axum` — HTTP routing, extractors, Tower middleware, `IntoResponse` error mapping, WebSockets - `rc-sqlx` — `PgPool`, query macros, transactions, migrations, `#[sqlx::test]` - `rc-sveltekit` — the SSR front end that consumes these APIs - `rc-fullstack-axum-svelte` — the router when a change spans more than one layer - `rc-final-verify` — after `cargo fmt`/`clippy`/`test` come back green ## When to Apply - Writing new Rust code or designing APIs - Reviewing or refactoring existing Rust code - Implementing async systems with Tokio - Designing error hierarchies with thiserror/anyhow - Choosing between borrowing, cloning, or ownership transfer - Setting up tests, benchmarks, or snapshot testing - Configuring clippy lints and workspace settings - Optimizing Rust code for performance ## Reference Guide Load detailed guidance based on context. Read the relevant file when the topic arises: | Topic | Reference | Load When | |-------|-----------|-----------| | Coding Style | `references/coding-style.md` | Naming, imports, iterators, comments, string handling, macros | | Error Handling | `references/error-handling.md` | R...

Details

Author
rodolfochicone
Repository
rodolfochicone/rc-project
Created
1 months ago
Last Updated
2 weeks ago
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category