description Poem Overview
Poetry is a modern Rust web framework designed to simplify asynchronous application development. It emphasizes an API-first approach and leverages Rust's concurrency features through its async architecture and WebSocket support. This makes it suitable for developers building APIs and real-time applications who value performance, safety, and the benefits of the Rust language.
help Poem FAQ
Is Poem the Rust framework related to Python's Poetry tool?
No. Poem is an asynchronous Rust web framework, while Poetry is a Python dependency-management and packaging tool; the similar names refer to unrelated projects.
How does Poem generate OpenAPI documentation?
The separate poem-openapi crate uses Rust types and macros to describe endpoints and schemas. It can expose generated documentation through interfaces such as Swagger UI, as shown in the [official crate documentation](https://docs.rs/poem-openapi/latest/poem_openapi/).
Can Poem handle WebSocket connections?
Yes. Poem provides a WebSocket extractor that upgrades an HTTP request and lets a handler process asynchronous messages, with examples available in the [Poem API documentation](https://docs.rs/poem/latest/poem/web/websocket/struct.WebSocket.html).
When would I choose Poem instead of Axum or Actix Web?
Poem is particularly attractive when integrated OpenAPI generation is central to an API project. Axum fits naturally into the Tokio and Tower ecosystem, while Actix Web has its own mature actor-influenced stack and extensive production history.
explore Explore More
Similar to Poem
See all arrow_forwardReviews & Comments
Write a Review
Be the first to review
Share your thoughts with the community and help others make better decisions.