Awesome-omni-skill rust
Best practices for Rust development including project structure, error handling, and testing
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/development/rust-newkub" ~/.claude/skills/diegosouzapw-awesome-omni-skill-rust && rm -rf "$T"
manifest:
skills/development/rust-newkub/SKILL.mdsource content
Rust Development
When to Execute
Use this skill when you need to develop systems with Rust focusing on safety, performance, and maintainability.
Folder Structure Summary
| Folder | Purpose | When to Use |
|---|---|---|
| Specific guidelines and patterns | Create actionable rules |
| Implementation guides | Step-by-step setup instructions |
Entry Points
- New Rust Project - Start with
and configure Cargo.tomlcargo new - Error Handling - Use thiserror for robust error management
- Project Structure - Follow components, services, and adapters patterns
- Configuration - Set up config files and Cargo config
- Testing & CI - Implement comprehensive testing strategies
Quick Start
- สร้างโปรเจกต์ Rust ใหม่ด้วย
cargo new my-project - ตั้งค่า Cargo.toml ตาม rust-cargo-toml.md
- ตั้งค่า error handling ด้วย thiserror ตาม rust-error-rs.md
- จัดโครงสร้างโปรเจกต์ตาม rust-components.md
- รัน
เพื่อทดสอบการตั้งค่าcargo test
Rules
| Priority | Impact | Reference | Name | Description | Prefix | Condition |
|---|---|---|---|---|---|---|
| 1 | | rust-cargo-toml.md | Cargo.toml | ตั้งค่า Cargo.toml ตาม best practices | | เมื่อสร้าง project |
| 1 | | rust-cargo-config.md | Cargo Config | ตั้งค่า .cargo/config.toml | | เมื่อตั้งค่า config |
| 1 | | rust-config-file.md | Config File | ตั้งค่า Config.toml | | เมื่อตั้งค่า config |
| 2 | | rust-error-rs.md | Error Handling | การจัดการ errors ด้วย thiserror | | เมื่อ handle errors |
| 2 | | rust-config-rs.md | Config Module | การจัดการ configuration ด้วย figment | | เมื่อจัดการ config |
| 2 | | rust-telemetry-rs.md | Telemetry | การจัดการ logging ด้วย tracing | | เมื่อ setup telemetry |
| 2 | | rust-prelude-rs.md | Prelude | การจัดการ common imports | | เมื่อจัดการ imports |
| 2 | | rust-lib-rs.md | Library Entry | Expose Public API | | เมื่อสร้าง library |
| 2 | | rust-main-rs.md | Main Entry | Application Entry Point | | เมื่อสร้าง application |
| 3 | | rust-components.md | Components | Pure Layer: Domain logic | | เมื่อสร้าง components |
| 3 | | rust-services.md | Services | Effect Layer: I/O | | เมื่อสร้าง services |
| 3 | | rust-adapters.md | Adapters | Wrappers สำหรับ external libraries | | เมื่อสร้าง adapters |
| 3 | | rust-utils.md | Utils | Pure helpers | | เมื่อสร้าง utils |
| 3 | | rust-types.md | Types | Data Structures | | เมื่อสร้าง types |
| 3 | | rust-constants.md | Constants | ค่าคงที่ | | เมื่อสร้าง constants |
| 4 | | rust-testing.md | Testing | Unit และ Integration Tests | | เมื่อทดสอบ |
| 4 | | rust-imports.md | Imports | การจัดการ imports | | เมื่อจัดการ imports |
| 4 | | rust-documentation.md | Documentation | Documentation Standard | | เมื่อเขียน docs |
| 4 | | rust-prohibitions.md | Prohibitions | สิ่งที่ห้าม | | เมื่อเขียน code |
| 4 | | rust-code-quality.md | Code Quality | Best practices | | เมื่อเขียน code |
| 4 | | rust-security.md | Security | Best practices | | เมื่อ ensure security |
| 4 | | rust-performance.md | Performance | Best practices | | เมื่อ optimize |
Knowledge
| Reference | Name | Description | Prefix |
|---|---|---|---|
| core-concept.md | Core Concepts | ความรู้เกี่ยวกับ concepts หลักของ Rust | |
| all-features.md | All Features | ความรู้เกี่ยวกับฟีเจอร์ทั้งหมดของ Rust | |
| best-practices.md | Best Practices | แนวทางปฏิบัติที่ดีที่สุดสำหรับ Rust | |