39 breaking releases

new 0.51.0 Jan 10, 2025
0.49.0 Nov 12, 2024
0.47.0 Jul 23, 2024
0.42.0 Mar 18, 2024
0.13.0 Mar 27, 2023

#1422 in HTTP server

Download history 17/week @ 2024-09-19 132/week @ 2024-09-26 57/week @ 2024-10-03 16/week @ 2024-10-10 1/week @ 2024-10-17 96/week @ 2024-11-07 28/week @ 2024-11-14 7/week @ 2024-11-21 13/week @ 2024-11-28 30/week @ 2024-12-05 44/week @ 2024-12-12 5/week @ 2024-12-19 2/week @ 2024-12-26 70/week @ 2025-01-02

126 downloads per month

Apache-2.0

38KB
689 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

~25–39MB
~646K SLoC