33 breaking releases

new 0.45.0 May 13, 2024
0.43.0 Apr 2, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#405 in HTTP server

Download history 669/week @ 2024-01-24 673/week @ 2024-01-31 588/week @ 2024-02-07 983/week @ 2024-02-14 886/week @ 2024-02-21 1381/week @ 2024-02-28 1168/week @ 2024-03-06 2253/week @ 2024-03-13 1055/week @ 2024-03-20 1118/week @ 2024-03-27 1392/week @ 2024-04-03 1196/week @ 2024-04-10 1373/week @ 2024-04-17 1503/week @ 2024-04-24 1047/week @ 2024-05-01 1282/week @ 2024-05-08

5,330 downloads per month
Used in 2 crates

Apache-2.0

32KB
518 lines

Shuttle service integration for the Axum web framework

Axum 0.7 is used by default.

Axum 0.6 is supported by using these feature flags:

axum = "0.6.0"
shuttle-axum = { version = "0.45.0", default-features = false, features = ["axum-0-6"] }

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–23MB
~344K SLoC