Crate shuttle_salvo

Crate shuttle_salvo 

Source
Expand description

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

Re-exports§

pub use salvo;

Structs§

SalvoService
A wrapper type for salvo::Router so we can implement shuttle_runtime::Service for it.

Type Aliases§

ShuttleSalvo
Shuttle service integration for the Salvo web framework