shuttle-axum 0.35.1

Service implementation to run an axum webserver on shuttle
Documentation

Shuttle service integration for the Axum web framework.

Axum 0.7 is now supported by using these feature flags:

axum = "0.7.0"
shuttle-axum = { version = "0.35.1", 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())
}