shuttle-axum

Crates.ioshuttle-axum
lib.rsshuttle-axum
version0.43.0
sourcesrc
created_at2023-03-14 12:28:29.027644
updated_at2024-04-02 12:27:42.162835
descriptionService implementation to run an axum webserver on shuttle
homepage
repository
max_upload_size
id809811
Jocelyn Boullier (Kazy)

documentation

README

## 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: ```toml,ignore axum = "0.6.0" shuttle-axum = { version = "0.43.0", default-features = false, features = ["axum-0-6"] } ``` ### Example ```rust,ignore 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()) } ```
Commit count: 0

cargo fmt