41 breaking releases

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

#832 in HTTP server

Download history 2912/week @ 2024-11-21 3426/week @ 2024-11-28 3805/week @ 2024-12-05 4732/week @ 2024-12-12 2907/week @ 2024-12-19 2578/week @ 2024-12-26 3314/week @ 2025-01-02 3887/week @ 2025-01-09 4198/week @ 2025-01-16 3698/week @ 2025-01-23 3927/week @ 2025-01-30 3637/week @ 2025-02-06 4183/week @ 2025-02-13 3415/week @ 2025-02-20 3936/week @ 2025-02-27 3610/week @ 2025-03-06

15,714 downloads per month
Used in 5 crates

Apache-2.0

61KB
884 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

~14–26MB
~369K SLoC