poem VS Rocket

Compare poem vs Rocket and see what are their differences.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
poem Rocket
32 159
3,647 24,619
1.3% 0.7%
8.9 8.8
11 days ago 19 days ago
Rust Rust
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

poem

Posts with mentions or reviews of poem. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-10-22.
  • Show HN: Rust Web Framework
    13 projects | news.ycombinator.com | 22 Oct 2024
    https://github.com/poem-web/poem is one Rust framework with swagger definitions out of the box.
  • Rust needs a web framework for lazy developers
    14 projects | news.ycombinator.com | 6 Oct 2024
    There is one: Poem[1]

    The author mentions flask but looking at the "What we need section", I don't think flask covers those. I hate Djago with a passion but if those are the requirements, I think Django is the one that closely resembles what the author is describing. So Poem is not a good candidate either in that regard. Poem is all in all, something that closely resembles FastAPI, which is actually a complement. I've tried half a dozen rust web frameworks and they all come with a ton of boilerplate fiddling with the initial setup. Which is a problem if you want to get things done fast. In that regard, poem nails it. Yes, actix has a considerably better performance but unless you are aiming for sub-30 millisecond responses, then actix is not what you should be looking at to begin with. Also if you crave a Pydantic, there is a crate that sort of does that for you: https://crates.io/crates/poem-openapi

    [1] https://github.com/poem-web/poem

  • Write OpenAPI with TypeSpec
    7 projects | news.ycombinator.com | 27 Mar 2024
    TypeSpec is great, but if you're working with Rust and you're about to write a new project that will require an OpenApi spec sooner or later, I'd like to recommend a web framework that has spec generation baked in:

    https://github.com/poem-web/poem (see poem_openapi)

    All you need to do is derive a trait on your response structs and in return you get an almost perfectly generated spec. Unions, objects, enums are first class citizens.

    Also, if you're from coming from PHP, the controllers feel very much like symfony controllers.

    P.s. Please do recommend an ORM that would feel closer to doctrine. I miss doctrine.

  • What is the best API generator for Axum?
    2 projects | /r/rust | 9 Apr 2023
    I've used FastAPI/Pydantic before as well and it was a very good experience. It has been a while since I used them though, so I forget exactly how they compare, but I do recall it wrote most of the OpenAPI spec. for you. I will also agree when I saw utoipa and aide they seemed to require more boilerplate even though I have not done an actual comparison. Poem, on the other hand, seems very neat and clean and doesn't have any duplication that I can see. Here is the [TODO example](https://github.com/poem-web/poem/blob/master/examples/openapi/todos/src/main.rs).
  • Looking for a Rust API with automatic documentation and good validation?
    4 projects | /r/rust | 5 Mar 2023
    The example at https://github.com/poem-web/poem/tree/master/examples/openapi/auth-apikey works without issues for me.
  • What library to use for a Websocket Server?
    1 project | /r/rust | 23 Feb 2023
    'Poem', it turns to nicer to play with for me than 'Axum'. Example of web socket chat https://github.com/poem-web/poem/blob/master/examples/poem/websocket-chat/src/main.rs
  • Rest API framework in rust
    2 projects | /r/rust | 5 Feb 2023
    If you need built-in OpenAPI support, I can recommend Poem.
  • (Recommendation Request) Rust REST API framework; similar to Python's FastAPI(Python)
    3 projects | /r/rust | 21 Jan 2023
    If OpenAPI is important, then you may to consider https://github.com/poem-web/poem instead of axum. It isn't nearly as widely used, but it should still be compatible with everything else.
  • Hey Rustaceans! Got a question? Ask here (3/2023)!
    12 projects | /r/rust | 16 Jan 2023
    Poem: More rigid and less popular and aims to be easier https://github.com/poem-web/poem
  • A taste of pavex, an upcoming Rust web framework
    3 projects | /r/rust | 24 Dec 2022
    Did you check out Poem? It seems promising, with openapi generation built in already.

Rocket

Posts with mentions or reviews of Rocket. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-10-21.

What are some alternatives?

When comparing poem and Rocket you can also consider the following projects:

axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper

actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

jelly-actix-web-starter - A starter template for actix-web projects that feels very Django-esque. Avoid the boring stuff and move faster.

async-graphql - A GraphQL server library implemented in Rust

yew - Rust / Wasm framework for creating reliable and efficient web applications

okapi - OpenAPI (AKA Swagger) document generation for Rust projects

tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

rust-websocket - A WebSocket (RFC6455) library written in Rust

salvo - A powerful web framework built with a simplified design.

hyper - An HTTP library for Rust

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?