Back to skills
SkillHub ClubShip Full StackFull StackIntegration

Rust

Rust development patterns, project setup, CLI/TUI applications, error handling, and system integration

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
6
Hot score
82
Updated
March 20, 2026
Overall rating
A8.1
Composite score
5.5
Best-practice grade
C61.2

Install command

npx @skill-hub/cli install lawless-m-claude-skills-rust

Repository

lawless-m/claude-skills

Skill path: .claude/skills/Rust

Rust development patterns, project setup, CLI/TUI applications, error handling, and system integration

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack, Integration.

Target audience: Rust developers transitioning from beginners to intermediate level, particularly those building CLI/TUI applications on Linux systems.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: lawless-m.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install Rust into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/lawless-m/claude-skills before adding Rust to shared team environments
  • Use Rust for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: Rust
description: Rust development patterns, project setup, CLI/TUI applications, error handling, and system integration
---

# Rust Development

This skill covers Rust development with two specialized reference documents:

## When Starting a New Project

Use **[Rust-Project-Setup.md](Rust-Project-Setup.md)** for:
- Creating new Rust CLI/TUI applications from scratch
- Cargo.toml setup and dependency selection
- Module structure and organization
- System dependency documentation (ALSA, X11, OpenGL, etc.)
- Configuration with serde/toml
- README and documentation templates
- Step-by-step implementation workflow

## When Writing Code

Use **[Rust-Patterns.md](Rust-Patterns.md)** for:
- Trait-based abstractions for swappable implementations
- Error handling (anyhow vs thiserror)
- CLI argument parsing with clap
- Structured logging with tracing
- Frame timing and performance monitoring
- Linux device I/O (v4l2, video processing)
- Color space conversion (RGB to YUYV)
- Testing patterns with mocks

## Quick Reference

### Error Handling Decision

```
Is this a library?
├─ Yes → Use thiserror for typed errors
└─ No (application) → Use anyhow with .context()
```

### Common Dependencies

| Need | Crate | Notes |
|------|-------|-------|
| Error handling (app) | `anyhow` | Flexible, ergonomic |
| Error handling (lib) | `thiserror` | Typed errors |
| CLI parsing | `clap` v4 | Use derive feature |
| TUI framework | `ratatui` | With crossterm |
| Configuration | `serde` + `toml` | Standard approach |
| Async runtime | `tokio` | Most popular |
| HTTP client | `reqwest` | High-level, async |
| Logging | `tracing` | Structured logging |

### Cargo Commands

```bash
cargo check          # Fast compilation check
cargo build          # Debug build
cargo build --release # Optimized build
cargo test           # Run tests
cargo clippy         # Lint code
cargo fmt            # Format code
cargo doc --open     # Generate docs
```

### Cargo.lock Decision

- **Applications/Binaries**: Commit Cargo.lock (reproducible builds)
- **Libraries**: Don't commit (let downstream decide versions)
Rust | SkillHub