40 breaking releases

new 0.52.0 Feb 4, 2025
0.50.0 Jan 7, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#776 in HTTP server

Download history 2238/week @ 2024-10-22 2810/week @ 2024-10-29 2489/week @ 2024-11-05 2730/week @ 2024-11-12 2893/week @ 2024-11-19 3069/week @ 2024-11-26 3818/week @ 2024-12-03 4538/week @ 2024-12-10 3391/week @ 2024-12-17 2674/week @ 2024-12-24 2852/week @ 2024-12-31 3953/week @ 2025-01-07 4304/week @ 2025-01-14 3963/week @ 2025-01-21 3698/week @ 2025-01-28 3416/week @ 2025-02-04

15,822 downloads per month
Used in 4 crates

Apache-2.0

46KB
814 lines

Shuttle service integration for the Axum web framework

Axum 0.8 is used by default.

Axum 0.7 is supported by using these feature flags:

axum = "0.7.3"
shuttle-axum = { version = "...", default-features = false, features = ["axum-0-7"] }

Example

use axum::{routing::get, Router};

async fn hello_world() -> &'static str {
    "Hello, world!"
}

#[shuttle_runtime::main]
async fn axum() -> shuttle_axum::ShuttleAxum {
    let router = Router::new().route("/", get(hello_world));

    Ok(router.into())
}

Dependencies

~13–25MB
~354K SLoC