36 breaking releases

0.48.0 Oct 1, 2024
0.47.0 Jul 23, 2024
0.46.0 Jun 13, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#894 in HTTP server

Download history 476/week @ 2024-07-04 826/week @ 2024-07-11 1688/week @ 2024-07-18 3000/week @ 2024-07-25 1386/week @ 2024-08-01 1016/week @ 2024-08-08 994/week @ 2024-08-15 890/week @ 2024-08-22 917/week @ 2024-08-29 786/week @ 2024-09-05 1022/week @ 2024-09-12 1123/week @ 2024-09-19 1399/week @ 2024-09-26 1079/week @ 2024-10-03 816/week @ 2024-10-10 1014/week @ 2024-10-17

4,520 downloads per month
Used in 3 crates

Apache-2.0

39KB
695 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.48.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

~18–31MB
~490K SLoC