41 breaking releases

new 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

#885 in HTTP server

Download history 2997/week @ 2024-11-22 3560/week @ 2024-11-29 4167/week @ 2024-12-06 4160/week @ 2024-12-13 2915/week @ 2024-12-20 2535/week @ 2024-12-27 3369/week @ 2025-01-03 4350/week @ 2025-01-10 4032/week @ 2025-01-17 3590/week @ 2025-01-24 3960/week @ 2025-01-31 3609/week @ 2025-02-07 4010/week @ 2025-02-14 3706/week @ 2025-02-21 3730/week @ 2025-02-28 3733/week @ 2025-03-07

15,771 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
~370K SLoC