37 breaking releases

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

#927 in HTTP server

Download history 889/week @ 2024-08-21 985/week @ 2024-08-28 779/week @ 2024-09-04 985/week @ 2024-09-11 1045/week @ 2024-09-18 1345/week @ 2024-09-25 1212/week @ 2024-10-02 823/week @ 2024-10-09 1055/week @ 2024-10-16 2389/week @ 2024-10-23 2765/week @ 2024-10-30 2565/week @ 2024-11-06 2637/week @ 2024-11-13 2925/week @ 2024-11-20 3367/week @ 2024-11-27 3128/week @ 2024-12-04

12,496 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