I'm looking for a low overhead HTTP client in Rust to create a custom runtime for AWS lambda. All the implementations that I find (including the official runtime from AWS) are based on hyper/tokio and I don't want the overhead nor the added binary weight.
Do you know one ? Is there a reason all frameworks are based on tokio ?
Thanks,
Is there a reason all frameworks are based on tokio ?
Tokio
crate is contributed by many people and maintained by them as well. Since it is developed and maintained well, It is a wise idea to put new crates on top of this base.
This is why many libraries are depending Tokio
and it's variant/relevant crates.
Since Tokio
is based on minimal sub crates like tokio-tcp
, tokio-codec
, tokio-io
, tokio-executor
etc. these crates can be imported seperately so your release size will be considerably small.
If you insist on not using any tokio
dependency, there are still some options but they will be developed and maintained by relatively less contributor.
Here are some HTTP Client options which are not using Tokio:
There are plenty options apart from these alternatives, but in my opinion I import the minimal tokio relevant crates and implement my application on top of them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With