33 breaking releases

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

#406 in HTTP server

Download history 674/week @ 2024-02-01 730/week @ 2024-02-08 883/week @ 2024-02-15 999/week @ 2024-02-22 1224/week @ 2024-02-29 1377/week @ 2024-03-07 2141/week @ 2024-03-14 975/week @ 2024-03-21 1393/week @ 2024-03-28 1091/week @ 2024-04-04 1312/week @ 2024-04-11 1532/week @ 2024-04-18 1269/week @ 2024-04-25 1120/week @ 2024-05-02 1556/week @ 2024-05-09 692/week @ 2024-05-16

4,991 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