102 stable releases

Uses new Rust 2021

new 1.3.32 Jun 28, 2022
1.3.30 May 15, 2022
1.3.19 Mar 30, 2022
1.2.19 Dec 31, 2021
0.9.0 Oct 8, 2021

#149 in Network programming

Download history 258/week @ 2022-03-10 432/week @ 2022-03-17 59/week @ 2022-03-24 59/week @ 2022-03-31 224/week @ 2022-04-07 150/week @ 2022-04-14 16/week @ 2022-04-21 785/week @ 2022-04-28 795/week @ 2022-05-05 1813/week @ 2022-05-12 449/week @ 2022-05-19 627/week @ 2022-05-26 896/week @ 2022-06-02 14/week @ 2022-06-09 158/week @ 2022-06-16 48/week @ 2022-06-23

1,431 downloads per month

MIT/Apache

690KB
16K SLoC

Poem For AWS Lambda

Example

use poem::handler;
use poem_lambda::Error;

#[handler]
fn index() -> &'static str {
  "hello"
}

#[tokio::main]
async fn main() -> Result<(), Error> {
  poem_lambda::run(index).await
}

Safety

This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

MSRV

The minimum supported Rust version for this crate is 1.57.0.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you!

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Poem by you, shall be licensed as Apache, without any additional terms or conditions.

Dependencies

~10–17MB
~328K SLoC