35 breaking releases

new 0.47.0 Jul 23, 2024
0.45.0 May 13, 2024
0.42.0 Mar 18, 2024
0.35.2 Dec 21, 2023
0.13.0 Mar 27, 2023

#1239 in HTTP server

Download history 140/week @ 2024-03-28 35/week @ 2024-04-04 4/week @ 2024-04-11 116/week @ 2024-04-18 34/week @ 2024-04-25 7/week @ 2024-05-02 123/week @ 2024-05-09 21/week @ 2024-05-16 11/week @ 2024-05-23 16/week @ 2024-05-30 4/week @ 2024-06-06 131/week @ 2024-06-13

2,119 downloads per month

Apache-2.0

31KB
507 lines

Shuttle service integration for the Poem web framework

Example

use poem::{get, handler, Route};
use shuttle_poem::ShuttlePoem;

#[handler]
fn hello_world() -> &'static str {
    "Hello, world!"
}

#[shuttle_runtime::main]
async fn poem() -> ShuttlePoem<impl poem::Endpoint> {
    let app = Route::new().at("/", get(hello_world));

    Ok(app.into())
}

Dependencies

~20–33MB
~530K SLoC