axum-impl-deployment

Official

Ship Axum with safe, SIGTERM-aware shutdown

AuthorImpertio-Studio
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill prevents dropped in-flight requests and broken deployments by showing how to run Axum in production with a release build, production-ready Docker images, and a SIGTERM-aware graceful shutdown sequence.

Core Features & Use Cases

  • Production-grade graceful shutdown: Wires axum::serve(...).with_graceful_shutdown(...) to drain connections on SIGTERM/SIGINT so orchestrator restarts don’t kill active requests.
  • Bounded draining and resource cleanup: Pairs shutdown with TimeoutLayer to avoid indefinite drains, and closes the sqlx pool after serve returns.
  • Lean container builds: Provides multi-stage Docker patterns (including cargo-chef caching), static musl builds, and container hygiene (non-root user, bind 0.0.0.0).

Quick Start

Ask the skill to generate a complete main.rs and Dockerfile for an Axum 0.8 service that uses SIGTERM graceful shutdown, a TimeoutLayer drain cap, and a multi-stage build that outputs a minimal runtime image.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: axum-impl-deployment
Download link: https://github.com/Impertio-Studio/Axum-Claude-Skill-Package/archive/main.zip#axum-impl-deployment

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.