shuttle-salvo 0.31.0

Service implementation to run a salvo webserver on shuttle
Documentation

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())
}