| Crates.io | shuttle-axum |
| lib.rs | shuttle-axum |
| version | 0.57.0 |
| created_at | 2023-03-14 12:28:29.027644+00 |
| updated_at | 2025-09-11 12:13:15.748745+00 |
| description | Service implementation to run an axum webserver on shuttle |
| homepage | |
| repository | https://github.com/shuttle-hq/shuttle |
| max_upload_size | |
| id | 809811 |
| size | 61,194 |
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"] }
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())
}