32 breaking releases
new 0.44.0 | Apr 23, 2024 |
---|---|
0.42.0 | Mar 18, 2024 |
0.35.2 | Dec 21, 2023 |
0.34.1 | Nov 29, 2023 |
0.13.0 | Mar 27, 2023 |
#388 in HTTP server
4,921 downloads per month
Used in 2 crates
31KB
499 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.44.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
~14–24MB
~338K SLoC