41 breaking releases

0.53.0 Mar 12, 2025
0.51.0 Jan 10, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#479 in HTTP server

Download history 3734/week @ 2024-11-30 4239/week @ 2024-12-07 4025/week @ 2024-12-14 2813/week @ 2024-12-21 2477/week @ 2024-12-28 3620/week @ 2025-01-04 4485/week @ 2025-01-11 3997/week @ 2025-01-18 3395/week @ 2025-01-25 3992/week @ 2025-02-01 4013/week @ 2025-02-08 3488/week @ 2025-02-15 3884/week @ 2025-02-22 3581/week @ 2025-03-01 4476/week @ 2025-03-08 3845/week @ 2025-03-15

16,180 downloads per month
Used in 5 crates

Apache-2.0

61KB
884 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

~14–26MB
~368K SLoC