be-rust

Develop Rust backend services with Axum, SQLx, and Tokio.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-rust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: be-rust
Source: https://github.com/MassimilianoPili/agent-framework/tree/main/.claude/agents/be-rust
Command: npx skills add https://github.com/MassimilianoPili/agent-framework --skill be-rust

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the development of robust, asynchronous backend services in Rust, handling API implementation, data persistence, and error management according to best practices.

Core Features & Use Cases

  • API Implementation: Develop RESTful APIs using the Axum web framework.
  • Data Persistence: Integrate with databases using SQLx for compile-time checked queries.
  • Error Handling: Implement structured error management with thiserror and RFC 7807 compliant responses.
  • Use Case: Implement a new set of user management endpoints for a web application, including CRUD operations, database interactions, and input validation.

Quick Start

Use the be-rust skill to implement the user registration endpoint based on the provided OpenAPI contract.

Frequently Asked Questions about be-rust

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

FAQPage Schema
How do I build a Rust backend API with Axum and compile-time checked SQL queries?

Build a Rust backend API by using Axum for HTTP routing and SQLx for compile-time verified database queries. This combination ensures type-safe data persistence and asynchronous request handling for production-ready services.

What is the best way to handle errors in a Rust Axum web service?

The best way to handle errors in a Rust Axum service is implementing structured error management with `thiserror` and returning RFC 7807 compliant responses. This standardizes API error payloads for clients.

How do I implement an OpenAPI contract-first API in Rust?

Implement an OpenAPI contract-first API in Rust by using Axum and Tokio to build asynchronous endpoints that strictly match your provided contract. SQLx handles the underlying data persistence with validation.

Does SQLx support asynchronous database operations with Tokio and Axum?

Yes, SQLx fully supports asynchronous database operations with Tokio and Axum. It provides compile-time checked queries, ensuring your SQL statements are valid before your Rust backend service even runs.

Can I use this approach to add CRUD endpoints to an existing Rust web application?

Yes, you can use this approach to add CRUD endpoints to an existing Rust web application. It focuses on implementing user management endpoints, input validation, and database interactions using idiomatic Rust patterns.

Why use compile-time checked SQL queries in Rust backend development?

Use compile-time checked SQL queries in Rust backend development to catch database errors early. SQLx verifies queries against your database at build time, preventing runtime failures and ensuring robust data persistence.