Crate shuttle_salvo
source ·Expand description
§Shuttle service integration for the Salvo web framework
§Example
use salvo::prelude::*;
#[handler]
async fn hello_world(res: &mut Response) {
res.render(Text::Plain("Hello, world!"));
}
#[shuttle_runtime::main]
async fn salvo() -> shuttle_salvo::ShuttleSalvo {
let router = Router::new().get(hello_world);
Ok(router.into())
}
Structs§
- A wrapper type for salvo::Router so we can implement shuttle_runtime::Service for it.
Type Aliases§
- Shuttle service integration for the Salvo web framework