40 breaking releases

0.52.0 Feb 4, 2025
0.50.0 Jan 7, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.13.0 Mar 27, 2023

#700 in HTTP server

Download history 2765/week @ 2024-10-30 2565/week @ 2024-11-06 2637/week @ 2024-11-13 2925/week @ 2024-11-20 3330/week @ 2024-11-27 3589/week @ 2024-12-04 4739/week @ 2024-12-11 3282/week @ 2024-12-18 2522/week @ 2024-12-25 3104/week @ 2025-01-01 3766/week @ 2025-01-08 4257/week @ 2025-01-15 3992/week @ 2025-01-22 3914/week @ 2025-01-29 3485/week @ 2025-02-05 5001/week @ 2025-02-12

16,760 downloads per month
Used in 5 crates

Apache-2.0

46KB
814 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
~368K SLoC