37 breaking releases

new 0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#883 in HTTP server

Download history 2377/week @ 2024-07-29 822/week @ 2024-08-05 1114/week @ 2024-08-12 846/week @ 2024-08-19 1073/week @ 2024-08-26 764/week @ 2024-09-02 792/week @ 2024-09-09 1079/week @ 2024-09-16 1193/week @ 2024-09-23 1580/week @ 2024-09-30 638/week @ 2024-10-07 951/week @ 2024-10-14 2005/week @ 2024-10-21 2860/week @ 2024-10-28 2595/week @ 2024-11-04 2543/week @ 2024-11-11

10,063 downloads per month
Used in 3 crates

Apache-2.0

38KB
694 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.49.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

~20–33MB
~524K SLoC