shuttle-salvo

Crates.ioshuttle-salvo
lib.rsshuttle-salvo
version0.48.0
sourcesrc
created_at2023-03-14 12:40:17.602256
updated_at2024-10-01 14:36:45.338207
descriptionService implementation to run a salvo webserver on shuttle
homepage
repositoryhttps://github.com/shuttle-hq/shuttle
max_upload_size
id809825
size2,678
(jonaro00)

documentation

README

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())
}
Commit count: 1381

cargo fmt