35 breaking releases

new 0.47.0 Jul 23, 2024
0.45.0 May 13, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#543 in HTTP server

Download history 1018/week @ 2024-04-05 1326/week @ 2024-04-12 1629/week @ 2024-04-19 1115/week @ 2024-04-26 1099/week @ 2024-05-03 1569/week @ 2024-05-10 1053/week @ 2024-05-17 1155/week @ 2024-05-24 1216/week @ 2024-05-31 858/week @ 2024-06-07 1639/week @ 2024-06-14 1049/week @ 2024-06-21 628/week @ 2024-06-28 508/week @ 2024-07-05 936/week @ 2024-07-12 1292/week @ 2024-07-19

3,594 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.47.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–22MB
~334K SLoC