39 breaking releases

new 0.51.0 Jan 10, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#528 in HTTP server

Download history 1118/week @ 2024-09-20 1603/week @ 2024-09-27 861/week @ 2024-10-04 811/week @ 2024-10-11 1246/week @ 2024-10-18 2787/week @ 2024-10-25 2792/week @ 2024-11-01 2409/week @ 2024-11-08 2740/week @ 2024-11-15 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 2802/week @ 2025-01-03

13,349 downloads per month
Used in 4 crates

Apache-2.0

39KB
704 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

~19–32MB
~485K SLoC