Rust pro

From Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI · View interactive version

Rust pro is an AI agent skill from the GitHub repository Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI. Master Rust 1.75+ development with async runtime (Tokio/smol).

How to use this skill

Skill file

Rust Professional Development

Goal: Write idiomatic, high-performance, and memory-safe Rust code following standard community practices (The Rust Way).

1. Core Principles

2. Toolchain & Ecosystem

3. Recommended Project Structure

my_crate/
├── Cargo.toml
├── src/
│   ├── main.rs          # Binary entry point
│   ├── lib.rs           # Library entry point
│   ├── bin/             # Additional binaries
│   ├── models/          # Data structures
│   ├── error.rs         # Central error definition
│   └── utils.rs         # Helper functions
└── tests/               # Integration tests
    └── integration_test.rs

4. Common Dependencies (The Standard Stack)

5. Security & Performance

6. Implementation Workflow

  1. Define Types: Start with struct and enum definitions.
  2. Define Traits: Outline behavior using traits.
  3. Implement Logic: Implement traits for types.
  4. Wire up: Connect components in main.rs or lib.rs.
  5. Test: Write unit tests alongside code and integration tests in tests/.

Anti-Patterns to Avoid:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.