rust-web

Develop Rust web services and HTTP APIs with Axum and Actix-web.

44|7|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/huiali/rust-skills --skill rust-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-web
Source: https://github.com/huiali/rust-skills/tree/main/.codex/skills/rust-web
Command: npx skills add https://github.com/huiali/rust-skills --skill rust-web

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and best practices for developing robust, performant, and maintainable web services and HTTP APIs using Rust, focusing on modern frameworks like Axum and Actix-web.

Core Features & Use Cases

  • Framework Selection: Guidance on choosing between Axum, Actix-web, and Rocket.
  • API Design: Patterns for handlers, state management, and error handling.
  • Middleware: Implementing logging, authentication, and other cross-cutting concerns.
  • Database Integration: Best practices for integrating with databases using SQLx.
  • Project Structure: Domain-driven design patterns for scalable applications.
  • Use Case: You need to build a new REST API for a user management system. This Skill will guide you through selecting a framework, designing your API endpoints, handling requests and responses, managing database connections, and structuring your project for maintainability.

Quick Start

Use the rust-web skill to generate a basic Axum application structure with a simple GET endpoint.

Frequently Asked Questions about rust-web

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

FAQPage Schema
How do I build a Rust web service with Axum or Actix-web?

To build a Rust web service with Axum or Actix-web, you design API endpoints, implement handlers, manage state, and apply middleware. This Skill guides you through API design patterns, project structuring, and database integration for production-ready HTTP APIs.

What is the best way to structure a scalable Rust HTTP API project?

The best way to structure a scalable Rust HTTP API is using domain-driven design patterns. This approach separates handlers, business logic, and data access layers, ensuring your web service remains maintainable as the application's complexity grows.

How does middleware layering work in Rust backend frameworks?

Middleware layering in Rust backend frameworks works by wrapping API handlers to execute cross-cutting concerns like logging and authentication sequentially. This Skill provides patterns to implement and manage these middleware layers effectively around your core request handling logic.

Should I choose Axum or Actix-web for my Rust backend?

Choosing between Axum, Actix-web, and Rocket depends on your specific performance needs and ecosystem preferences. This Skill provides framework selection guidance, comparing their approaches to API design, state management, and error handling for your Rust backend.

How do I integrate SQLx database connections in a Rust web service?

To integrate SQLx database connections in a Rust web service, you establish pooled connections and pass them through application state to your handlers. This Skill covers database integration best practices alongside error mapping and verification commands for testing.