#shuttle-service #poem

shuttle-poem

Service implementation to run a poem webserver on shuttle

27 breaking releases

new 0.39.0 Feb 14, 2024
0.37.0 Jan 24, 2024
0.35.2 Dec 21, 2023
0.34.1 Nov 29, 2023
0.13.0 Mar 27, 2023

#263 in HTTP server

Download history 72/week @ 2023-10-29 67/week @ 2023-11-05 59/week @ 2023-11-12 118/week @ 2023-11-19 202/week @ 2023-11-26 118/week @ 2023-12-03 109/week @ 2023-12-10 113/week @ 2023-12-17 145/week @ 2023-12-24 90/week @ 2023-12-31 102/week @ 2024-01-07 48/week @ 2024-01-14 79/week @ 2024-01-21 117/week @ 2024-01-28 13/week @ 2024-02-04 313/week @ 2024-02-11

526 downloads per month

Apache-2.0

3KB

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

~28–42MB
~758K SLoC