postman-code-generators
postman-code-generators copied to clipboard
Rust support
Is your feature request related to a problem? Please describe. Rust is growing fast and gaining acceptance. Postman lacks Rust examples.
Describe the solution you'd like New code generators in Rust, using Actix, Warp and/or Rocket crates.
Additional context https://github.com/actix/actix https://github.com/seanmonstar/warp https://github.com/SergioBenitez/Rocket/tree/v0.4
At the risk of starting a flame-war...
The HTTP client crates in order of most downloads on https://crates.io are:
I however, humbly think that reqwest
, surf
, and curl
should be top priority (in that order), because they represent the two main async ecosystems: tokio
and async-std
, as well as good 'ol libcurl
.
Bonus: hyper
, which is an HTTP library (which reqwest
and others are built on), not just an HTTP client.
Additional (semi related) context:
- https://crates.io/categories/web-programming::http-client?sort=downloads
- https://www.arewewebyet.org/topics/http-clients/
- https://blog.logrocket.com/the-state-of-rust-http-clients/
- https://medium.com/@shnatsel/smoke-testing-rust-http-clients-b8f2ee5db4e6
Support for Rust's reqwest
library is in the works and should be landing in a future version.
We've added support for generating Rust code snippets using reqwest
library in the latest version (v10.13) of Postman. Please feel free to try out this feature. Please feel free to provide feedback and contribute directly via issues/PR.