paperclip
WIP OpenAPI tooling for Rust. [Moved to: https://github.com/paperclip-rs/paperclip] (by wafflespeanut)
rust-fastapi-experiments
By dbanty
paperclip | rust-fastapi-experiments | |
---|---|---|
3 | 1 | |
428 | 8 | |
- | - | |
6.0 | 0.0 | |
over 2 years ago | almost 2 years ago | |
Rust | Rust | |
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.
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.
paperclip
Posts with mentions or reviews of paperclip.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-12.
-
Replacing FastAPI with Rust: Part 3 - Trying Actix
The first bit I tried was following pieces of the official actix-web tutorial in order to get a tiny little web server started locally. This went fine, but was actually a big mistake as that tutorial teaches you to use macros to define endpoints which, at the time of writing, Paperclip does not support.
-
Replacing FastAPI with Rust: Part 2 - Research
The biggest issue with Paperclip is that it only currently supports OpenAPI v2. There is work in progress to add v3 support, but it's just that: in progress. This means that if I really want to supplant FastAPI with this actix-web w/ Paperclip combo, I'm going to have to write my own v3 implementation. There is a GitHub Issue which talks about the intended strategy for achieving this being somehow based on converting a v2 spec to v3. I'm not sure how possible this will be considering there are some important features missing from v2. It makes more sense to me for this to be a different feature via cargo flag (or at least a different module).
rust-fastapi-experiments
Posts with mentions or reviews of rust-fastapi-experiments.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-01-12.
-
Replacing FastAPI with Rust: Part 3 - Trying Actix
The code works... but barely. If you want to see the end result, I have put it up in a GitHub Repository where I also intend to add future experiments in other frameworks. If you haven't gathered as much from all of the text above, this code is fragile, slow, and in no way recommended for production. But if you're more experienced (or dedicated) than I am and want to try your hand at making it better, go for it!
What are some alternatives?
When comparing paperclip and rust-fastapi-experiments you can also consider the following projects:
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
okapi - OpenAPI (AKA Swagger) document generation for Rust projects
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
openapi-python-client - Generate modern Python clients from OpenAPI
rweb - Yet another web server framework for rust
warp_lambda - A super simple adapter crate to let you use warp filters with AWS lambda runtime