rust
Lang: Rust
Rules
- Safety: NEVER use
.unwrap(). Use?propagation or.expect("msg"). - Style: Prefer Iterators (
.map().collect()) overforloops. - Async: Assume
tokio. Use.await. Never block async threads. - Errors: Use
anyhow::Resultfor apps,thiserrorfor libs. - Tests: Co-locate unit tests in
mod testswith#[cfg(test)]. - Clippy: Code must be strictly
clippy-compliant (idiomatic).
Workflow
- Use
skill workflow-envbefore build/run commands. - Build:
cargo build --release - Test:
cargo test - Format:
cargo fmt
Docs: Context7 /websites/doc_rust-lang_stable_book · Fallback: https://doc.rust-lang.org
More from plutowang/term.conf
csharp
Auto-apply when working with C# and the .NET ecosystem. Trigger this skill when the user asks to create, modify, or debug C#, ASP.NET, Blazor, Entity Framework, MAUI, or use the dotnet CLI.
27react
Auto-apply when working with React, Next.js, or Vite. Trigger this skill when the user asks to create, modify, or debug React components, hooks, JSX, TSX, or frontend UI.
1zig
Auto-apply when working with Zig. Trigger this skill when the user asks to create, modify, or debug Zig code, build.zig scripts, or Zig tests.
1angular
Auto-apply when working with Angular. Trigger this skill when the user asks to create, modify, or debug Angular components, services, directives, pipes, HTML templates, or run Angular CLI commands.
1aws
Auto-apply when working with Amazon Web Services (AWS) or cloud infrastructure. Trigger this skill for CDK stacks, CloudFormation, Terraform, SAM, Lambda, S3, EC2, IAM, or any AWS cloud deployments.
1git
Auto-apply when the user asks for any git version control operations, including commit, push, pull, branch, merge, rebase, squash, reset, revert, cherry-pick, stash, tag, undo, amend, diff, log, or blame.
1