mir-backend-rust-axumlisted
Install: claude install-skill anantbhandarkar/make-it-right
# /mir-backend-rust-axum · Make It Right (Axum)
Bottom tier of the chain: `mir-backend` (generic gates) → `mir-backend-rust` (Tokio runtime model) → **this** (Axum/Tower library mechanics). Run the gates first; load the Rust runtime tier for blocking/cancellation/Arc concerns; reach for *this* at Gate 5 (design mechanics), Gate 6 (implementation), and Gate 7 review. **Runtime-level concerns (blocking the Tokio runtime, guard-across-await, cancellation safety, bounded channels, timeouts) live in `mir-backend-rust` — not here.**
**Stack assumed:** Axum · Tower middleware · async Rust on Tokio.
**Versions verified 13 Aug 2026:**
| Crate | Current | Note |
|---|---|---|
| `axum` | **0.8.9** (2026-04-14) | MSRV 1.80. 0.8.0 shipped 2025-01-01 |
| `axum-core` | 0.5.6 | where the `#[async_trait]` removal landed |
| `tower` | 0.5.3 | |
| `tower-http` | **0.7.0** (2026-06-15) | breaking changes from 0.6 — see §5 |
**Axum 0.9 is not released.** Work is on `main` with breaking changes queued, and the maintainers have stated there is no timeline. Target 0.8.x. If you are reading a tutorial that shows `Router::new().route("/users/:id", ...)`, it predates 0.8 and will panic — see §1.
## The Axum footguns AI walks into most
### 1. Route syntax changed in 0.8 — `/:id` panics, write `/{id}`
The single most common failure when AI writes Axum today. Axum 0.8 upgraded `matchit` to 0.8, which changed path parameter syntax. The old form was **deliberately made a panic** rather than silently