Loading...
Loading...
Implement and explain stable Rust language semantics with explicit toolchain and MSRV checks — ownership, borrowing, lifetimes, move semantics, traits, generics, associated types, pattern matching, closures, error propagation, and Edition differences. Use as the core Rust language skill when users ask for Rust syntax, compiler-error fixes, ownership/borrowing diagnoses, or version-sensitive stable code; hand std API selection (which collection, which smart pointer, which string type) to rust-stdlib, "how do I write X" pattern questions to rust-by-example, and specialized domains to their dedicated skills.
npx skill4agent add full-stack-skills/rust-skills rust-stablerust-stdlibrust-by-examplerustc --version --verbosecargo --versionrust-versionrust-toolchain.tomlrust-toolchainCargo.tomlstructenumOptionResultFnFnMutFnOncepubpub(crate)pub(super)unsafe extern| User Intent | Preferred Skill |
|---|---|
| "Which std collection / smart pointer / string type should I use?" | |
| "How do I write X in Rust?" (concrete pattern) | |
| API design (naming, traits, future-proofing, ~100 C-* rules) | |
| Project layout, module trees, workspace structure | |
| Cargo.toml dependencies, features, profiles, publishing | |
| Dependency governance, supply chain, cargo-deny | |
| Semver, breaking-change classification, publish workflow | |
| Java Maven/Gradle project migration and component replacement | |
| Java-to-Rust source-test parity, Rust obligations, and migration test audit | |
| Threads, locks, atomics, channels, Tokio | |
| Unit tests, integration tests, doctests, coverage | |
| Raw pointers, memory layout, FFI, Miri | |
| UniFFI-generated Kotlin, Swift, Python, Ruby, or WASM bindings | |
| macro_rules, derive, procedural macros | |
| Command contracts, standard streams, exit codes, CLI | |
| Server-side HTTP APIs, handlers, middleware | |
| SQL/ORMs, schemas, migrations, transactions, pools | |
| Web authentication, authorization, sessions, tokens | |
| Bare-metal firmware, no_std drivers, hardware validation | |
| Risk, correctness, API and safety review | |
| rustfmt, Clippy, Edition migration, lint policy | |
cargo fmt --checkcargo check&T&mut Tunsafesincecargo fmt --all --check
cargo check --all-targets --all-features
cargo test --all-targets --all-features
cargo clippy --all-targets --all-features -- -D warnings--all-featurescargo miri testcargo checkrust-stdlibreferences/rust-by-examplereferences/rust-api-designrust-cargo-buildrust-dependenciesexamples/ownership-patterns.mdexamples/collections-patterns.mdexamples/trait-design-patterns.mdexamples/error-handling-patterns.mdexamples/golden-basic/cargo checkcloneArc<Mutex<_>>unsafe.await