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 |
#861 in HTTP server
162 downloads per month
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
~21–33MB
~541K SLoC