33 breaking releases

new 0.45.0 May 13, 2024
0.43.0 Apr 2, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#1117 in HTTP server

Download history 7/week @ 2024-01-24 8/week @ 2024-01-31 146/week @ 2024-02-14 13/week @ 2024-02-21 152/week @ 2024-02-28 193/week @ 2024-03-06 860/week @ 2024-03-13 29/week @ 2024-03-20 91/week @ 2024-03-27 69/week @ 2024-04-03 3/week @ 2024-04-10 91/week @ 2024-04-17 44/week @ 2024-04-24 1/week @ 2024-05-01 80/week @ 2024-05-08

216 downloads per month

Apache-2.0

31KB
503 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

~26–41MB
~745K SLoC