postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Rust support

Open lcmartinsfilho opened this issue 4 years ago • 2 comments

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

lcmartinsfilho avatar Mar 03 '20 12:03 lcmartinsfilho

At the risk of starting a flame-war...

The HTTP client crates in order of most downloads on https://crates.io are:

  1. reqwest
  2. curl
  3. awc
  4. isahc
  5. atohttpc
  6. ureq
  7. surf

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

mwilliammyers avatar Dec 03 '20 00:12 mwilliammyers

Support for Rust's reqwest library is in the works and should be landing in a future version.

dhwaneetbhatt avatar Mar 21 '23 12:03 dhwaneetbhatt

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.

dhwaneetbhatt avatar Apr 17 '23 11:04 dhwaneetbhatt