rust

Build Rust APIs with Axum, Diesel, and utoipa following best practices.

2|1|Updated Jun 30, 2019
One-click install
npx skills add https://github.com/tgautier/dotfiles --skill rust-tgautier
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust
Source: https://github.com/tgautier/dotfiles/tree/main/claude/skills/rust
Command: npx skills add https://github.com/tgautier/dotfiles --skill rust-tgautier

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architects and engineers often struggle to design and implement production-grade Rust APIs with consistent error handling, typed domain models, migrations, and observability. This skill provides guidance, patterns, and DX principles to accelerate reliable API development with Axum, Diesel, and utoipa.

Core Features & Use Cases

  • Standardized handler patterns, error handling, and RFC 9457-compliant problem details.
  • Clear separation of read/write/input models with Diesel integration and safe migrations.
  • Observability, validation, and security patterns tailored for Rust web services.

Quick Start

Follow the steps to scaffold a new Rust API module, bootstrap Axum routes, and run tests.

Frequently Asked Questions about rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a production-grade Rust API with strong type safety and observability?

Build production-grade Rust APIs by enforcing Axum, Diesel, and utoipa best practices for strong type safety, robust error handling, database migrations, and mandatory instrumentation.

How do I structure error handling in Axum to return RFC 9457 problem details?

Structure error handling in Axum using standardized handler patterns that return RFC 9457-compliant problem details, ensuring robust and consistent API error responses across your web service.

What's the best way to separate read, write, and input models when using Diesel for Rust API development?

Separate read, write, and input models through clear domain modeling patterns integrated with Diesel, ensuring safe database migrations and strict data validation for your Rust API.

Can I use utoipa to generate OpenAPI documentation for an Axum web service?

Yes, utoipa integrates with Axum web services to generate OpenAPI documentation, applying API-design best practices alongside strict validation and domain modeling for production-grade endpoints.

Does this approach to Rust API design require mandatory CI hygiene and instrumentation?

Yes, this Rust API design approach enforces mandatory CI hygiene requirements and strict instrumentation, applying observability, validation, and security patterns tailored specifically for reliable web services.