ureq
A simple, safe HTTP client (by algesten)
surf
Fast and friendly HTTP client framework for async Rust (by http-rs)
Our great sponsors
ureq | surf | |
---|---|---|
7 | 4 | |
1,567 | 1,446 | |
- | 0.8% | |
8.5 | 0.0 | |
5 days ago | 8 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
ureq
Posts with mentions or reviews of ureq.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-29.
-
Thermostat Control for Ecobee
I also enjoyed using ureq as an http client.
-
An HTTP request parser with rust and pest.rs
After a quick check of the available rust http client libraries I opted for reqwest. It has a pretty simple API and it seems to be among the most used libraries for this matters. But I'm a bit concerned about all its dependencies so I might try ureq later.
- Why asynchronous Rust doesn't work
-
HTTP-client agnostic crate
Async is only useful when you have hundreds of connections open at the same time and idling most of the time; otherwise it's a liability. If your web API does not allow that (e.g. it has rate-limiting, which most APIs do), I suggest going with a client that performs blocking I/O and spawning threads if you need parallelism. https://github.com/algesten/ureq should fit the bill.
-
Client/Server Communication Help
I think you'll find a lot of people claiming its overkill, but it will have excellent documentation for both sides, offer reasonable speed, and let you hash out the actual logic of your system without worrying too much about if your low-level implementation is correct. Two good frameworks for the server would be Actix or Rocket. For the client, i'd reccomend either using reqwest or ureq. From there, you can just set up a few POST endpoints, and get to going.
-
http client facade library?
If you want an HTTP client with few dependencies and little unsafe code, take a look at https://github.com/algesten/ureq
-
Tokio, the async runtime for Rust, hits 1.0
Give ureq a try: https://github.com/algesten/ureq
surf
Posts with mentions or reviews of surf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-09.
- Hey Rustaceans! Got a question? Ask here (2/2023)!
-
New crate: asserhttp
It is a simple trait providing many asserters. This trait is then implemented for many http clients: reqwest, surf, isahc, hyper and actix.
-
Building static Rust binaries for Linux
This indicates curl, zlib, openssl, and libnghttp2 as well as a bunch of WASM-related things are being dynamically linked into my executable. To resolve this, I looked at the build features exposed by surf and found that it selects the "curl_client" feature by default, which can be turned off and replaced with "h1-client-rustls" which uses an HTTP client backed by rustls and async-std and no dynamically linked libraries. Enabling this build feature removed all -sys dependencies from androidx-release-watcher, allowing me to build static executables of it.
-
http client facade library?
https://github.com/http-rs/surf provides an abstraction over several backends, but forces you into async and async-std, and the abstractions it provides are very limited anyway.
What are some alternatives?
When comparing ureq and surf you can also consider the following projects:
reqwest - An easy and powerful Rust HTTP Client
hyper - An HTTP library for Rust
rust-http-clients-smoke-test
curl-rust - Rust bindings to libcurl
isahc - The practical HTTP client that is fun to use.
asserhttp - Fluent http assertions
teepee - Teepee, the Rust HTTP toolkit
rust - Empowering everyone to build reliable and efficient software.
smol - A small and fast async runtime for Rust
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore