45
The State of Async Rust: Runtimes
(corrode.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
AFAICT, the current hyper v1 release candidate only depends on tokio for
tokio::sync::{mpsc, oneshot}(andsyncis the only enabled feature).It's intended to be runtime-agnostic. See also https://docs.rs/hyper/1.0.0-rc.4/hyper/rt/trait.Executor.html . I agree that its ecosystem is still very tokio-centric.
FYI, I had some time to check out
hyperv1 today.The new API of
hyperproper is very low-level. Directly usable API is apparently moved to ahyper-utilcrate, which, as expected, does have a hard dependency on the tokio runtime.So, while it's good that
hyperproper won't hard-depend on tokio rt, it appears that non-tokio-rt usage will either depend on a higher-level 3d party crate, or a lot of effort from directhyperdependants to write a lot of glue code themselves.