37 breaking releases
new 0.49.0 | Nov 12, 2024 |
---|---|
0.47.0 | Jul 23, 2024 |
0.42.0 | Mar 18, 2024 |
0.35.2 | Dec 21, 2023 |
0.13.0 | Mar 27, 2023 |
#1519 in HTTP server
28 downloads per month
38KB
680 lines
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())
}
Dependencies
~30–46MB
~831K SLoC