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.