Skip to content

// High-performance Rust APIs with Axum + Tokio + sqlx: typed routes, extractors, async DB, deploy small.

Rust Axum APIVerified Creator

git log --oneline --stat
HEAD
Stars
2.3k
Forks
81
Updated
May 23, 2026
repo --stat
  • stars

    2.3k

  • forks

    81

  • last update

    May 23, 2026

  • license

    MITv1.5.0

quickstart.sh
3 steps
  1. Install

    // Drops SKILL.md into ~/.claude/skills/

    $ claude skills add rust-axum-api
  2. Invoke

    // Run from any project directory

    $ claude --skill rust-axum-api "scaffold a typed REST endpoint"
  3. Iterate

    // Re-run with edits — Claude keeps the skill loaded

    $ claude --skill rust-axum-api "now refactor it"
rust-axum-api/
references
  • references/
  • SKILL.mdopen
  • README.mdopen
SKILL.md
readonly
name:
Rust Axum API
slug:
rust-axum-api
version:
v1.5.0
license:
MIT
author:
@rust-craft
categories:
tags:
#rust#axum#tokio#sqlx#performance
description:

High-performance Rust APIs with Axum + Tokio + sqlx: typed routes, extractors, async DB, deploy small.

features.md
6 capabilities

// What you can do with it

  • A Router built with .route("/path", get(handler)) and merged sub-routers.
  • Handlers using real extractors — Path, Query, Json, and State — returning Result, AppError> where AppError implements IntoResponse.
  • A shared PgPool created via PgPoolOptions::new().connect(&url), stored in State and cloned cheaply per request.
  • Compile-time-checked queries with the sqlx::query! / query_as! macros (backed by sqlx-cli and a .sqlx offline cache).
  • tower-http layers: TraceLayer, CorsLayer, and timeout/compression as needed.
  • A migrations/ folder runnable with sqlx migrate run, and a distroless/scratch Dockerfile.

README.md

rust-axum-api/README.md
7 sections
Loading README…

$ cat reviews/

Reviews

// No reviews yet. Be the first.
Loading review form…