shuttle-salvo

Crates.ioshuttle-salvo
lib.rsshuttle-salvo
version0.49.0
sourcesrc
created_at2023-03-14 12:40:17.602256
updated_at2024-11-12 14:57:33.379035
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: 1391

cargo fmt