rust-web-app

Scaffold a Rust web application with Axum, Tokio, SQLx, and PostgreSQL.

Updated Nov 26, 2025
One-click install
npx skills add https://github.com/neyrojasj/smart-agent --skill rust-web-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-web-app
Source: https://github.com/neyrojasj/smart-agent/tree/main/.github/skills/rust-web-app
Command: npx skills add https://github.com/neyrojasj/smart-agent --skill rust-web-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the scaffolding of a production-ready Rust web application, providing a standardized, battle-tested starting point that speeds up the initial setup and ensures best practices are followed.

Core Features & Use Cases

  • Full project scaffold: Axum + Tokio + SQLx + PostgreSQL with a ready-to-run structure.
  • Layered architecture: routes, handlers, models, db, middleware, and tests organized for maintainability.
  • Tooling & standards: Cargo.toml, Makefile, docker-compose, .env.example, .gitignore, and enforcement of Rust coding standards.
  • Agent memory initialization: integrates with the setup skill to initialize persistent context for the project.

Quick Start

Provide the project name and description to generate a full Rust web app scaffold with Axum, Tokio, SQLx, and PostgreSQL.

Frequently Asked Questions about rust-web-app

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

FAQPage Schema
How do I scaffold a Rust web app with Axum and PostgreSQL?

Scaffolding a Rust web app with Axum and PostgreSQL requires providing a project name and description to generate a full structure featuring Tokio, SQLx, layered architecture, and ready-to-run configuration files.

What is the best way to structure a production-ready Axum and Tokio project?

The best way to structure a production-ready Axum and Tokio project is using a layered architecture that organizes routes, handlers, models, database modules, middleware, and tests to ensure maintainability and enforce Rust coding standards.

Does this Rust web app scaffold include Docker and environment configuration?

Yes, the scaffold includes Docker and environment configuration by generating a docker-compose file, Cargo.toml, Makefile, .env.example, and .gitignore alongside the core Axum application code.

How does SQLx connect to PostgreSQL in an Axum web application?

SQLx connects to PostgreSQL in an Axum web application through asynchronous database modules within the scaffold, utilizing environment variables for configuration and enforcing fast fail behavior for missing credentials.

Can I enforce zero unwraps and strict Rust standards in an Axum scaffold?

Yes, the scaffold enforces zero unwraps and strict Rust standards by applying built-in guardrails that fast fail on missing environment variables and eliminate unwrap usage throughout the generated Axum project code.

What limitations exist when bootstrapping a Rust web app with SQLx and Axum?

A key limitation when bootstrapping this Rust web app is the strict fast-fail requirement; missing environment variables will immediately halt the application startup to enforce zero unwrap guardrails.