poem
jelly-actix-web-starter
DISCONTINUED
Our great sponsors
poem | jelly-actix-web-starter | |
---|---|---|
30 | 15 | |
3,141 | 225 | |
4.0% | - | |
8.8 | 0.0 | |
4 days ago | about 1 year ago | |
Rust | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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
-
Write OpenAPI with TypeSpec
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?
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?
The example at https://github.com/poem-web/poem/tree/master/examples/openapi/auth-apikey works without issues for me.
-
Rest API framework in rust
If you need built-in OpenAPI support, I can recommend Poem.
-
(Recommendation Request) Rust REST API framework; similar to Python's FastAPI(Python)
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)!
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
Did you check out Poem? It seems promising, with openapi generation built in already.
-
I switch from Golang and want to build a REST API in Rust.
https://github.com/poem-web/poem is a pretty nice framework
-
Migrating from warp to axum
I recently been working with warp and stumbled upon poem framework (https://github.com/poem-web/poem), any thoughts about that? Considering Axum as well but staying a bit on cautionary side until 0.6 full release.
-
Any Rust based forum software?
If one were to undertake a project of developing something like this, which is the best web framework for it. I did some cursory research and discovered these back-end frameworks - actix, axum, poem, salvo, warp, gotham and rocket.
jelly-actix-web-starter
-
Actix Web v4.0 (Rust)
My usual reminder that I have a Django-ish template for actix-web that I maintain: https://github.com/secretkeysio/jelly-actix-web-starter
Now that actix-web 4.0 is out I should be able to finally resolve one of the open issues/PRs, which I was waiting on 4.0 for.
- Which Rust web framework to choose in 2022 (with code examples)
-
The 10 books that helped me, as a hobbyist, on my journey to learn Rust to re-code a Django application
For those interested in Django-in-Rust type approaches, I maintain an actix-web starter project that does exactly this: https://github.com/secretkeysio/jelly-actix-web-starter
-
Announcing actix-web-flash-messages: a port of Django's messages framework to actix-web
Curious why you went with the mailbox approach - since a request is pretty much in-and-out, I found it sufficient to just write a trait for HttpRequest and have a custom render(...) method that pulls any flash messages from the session, thus clearing them. Wouldn't surprise me if I'm missing something tho.
- Ask HN: Go-To Web Stack Today?
-
Trillium web framework
I love Askama, but being tied to compile time changes is an absurd handicap on a web framework in the initial iteration phase. With Tera, you can implement a watcher for template changes and reload them without needing to recompile the entire framework.
-
What’s everyone working on this week (12/2021)?
If you want, I have an open source actix-web repo that does stuff like this for you already.
-
Rust as a Flask API replacement? + performance benefits?
If you enjoy Python's web story but want something similar-ish in Rust, you can check out my actix boilerplate repo - it "mimics" Django in many ways. If nothing else, might be useful for picking apart.
-
Rust for web development: 2 years later
Re: the out-of-the-box auth solution, I actually open sourced this based on another thread similar to this from a few weeks ago:
https://github.com/secretkeysio/jelly-actix-web-starter
I built it because I was _also_ frustrated with the same level of abstraction you mention. Granted, I do agree that that Django/etc are more feature-rich, and that's definitely not getting replaced overnight.
-
What has been your experience creating a web app with Rust vs other languages
For anyone interested: https://github.com/secretkeysio/jelly-actix-web-starter
What are some alternatives?
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
Rocket - A web framework for Rust.
uWebSockets.js - μWebSockets for Node.js back-ends :metal:
async-graphql - A GraphQL server library implemented in Rust
okapi - OpenAPI (AKA Swagger) document generation for Rust projects
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
Warp - Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
warp - A super-easy, composable, web server framework for warp speeds.
slack-morphism-rust - A modern async client library for Rust, supports Slack Web / Events API/Socket Mode and Block Kit.
sailfish - Simple, small, and extremely fast template engine for Rust
salvo - A powerful web framework built with a simplified design.