| Crates.io | shuttle-salvo |
| lib.rs | shuttle-salvo |
| version | 0.57.0 |
| created_at | 2023-03-14 12:40:17.602256+00 |
| updated_at | 2025-09-11 12:13:18.465435+00 |
| description | Service implementation to run a salvo webserver on shuttle |
| homepage | |
| repository | https://github.com/shuttle-hq/shuttle |
| max_upload_size | |
| id | 809825 |
| size | 75,233 |
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())
}