rust-systems

Solid

Rust patterns for CLI tools, backend services, and general application code. Use when working with Rust, Cargo workspaces, axum/tokio services, clap CLIs, async concurrency, or configuring clippy, rustfmt, cargo-nextest, or Cargo.toml.

AI & Automation 41 stars 8 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

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

Skill Content

# Rust Systems & Services Covers modern application-layer Rust (edition 2024): CLIs, web services, libraries. Not `no_std`/embedded. ## Tooling | Tool | Purpose | |------|---------| | `cargo` | Build, dep management, script runner | | `clippy` | Lint (`cargo clippy --workspace --all-targets -- -D warnings`) | | `rustfmt` | Formatter (`cargo fmt --all`) | | `cargo-nextest` | Test runner | | `cargo-deny` | License + advisory + duplicate-dep checks | | `cargo-machete` | Find unused dependencies | - Pin `rust-toolchain.toml` per repo so every contributor and CI uses the same compiler. - `cargo update -p <crate>` for single-package upgrades. `cargo update` rewrites everything — avoid in PR diffs. - `Cargo.lock` goes in version control for binaries *and* libraries (modern guidance; reproducibility wins). ## Workspaces Multi-crate projects use a workspace with layered crates. Dependencies point inward only. ``` Cargo.toml # [workspace] members + [workspace.dependencies] crates/ protocol/ # Shared types, no deps on other workspace crates storage/ # Persistence, depends on protocol service/ # Business logic, depends on protocol + storage cli/ # Binary, depends on everything ``` - Centralize versions in `[workspace.dependencies]`, reference as `foo = { workspace = true }` in members. - Keep the leaf-most crate (`protocol` / types) dependency-free so every other crate can depend on it without cycles. - Feature flags belong on the crate t...

Details

Author
iliaal
Repository
iliaal/ai-skills
Created
6 months ago
Last Updated
3 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category