2 releases
| 0.1.1 | Dec 29, 2023 |
|---|---|
| 0.1.0 | Dec 29, 2023 |
#2483 in Asynchronous
36,010 downloads per month
Used in 27 crates
(21 directly)
13KB
197 lines
smol-hyper
Implementation of hyper's runtime traits for smol.
The goal of this crate is to allow for greater integration between hyper and
smol. It is deliberately constrained and implements the following:
- Implements
hyper::rt::Readandhyper::rt::Writeforfutures_io::AsyncReadandfutures_io::AsyncWrite, respectively. - Implements
hyper::rt::ExecutoronSmolExecutor, which wraps around something that derefs tosmol::Executor(&Executor,Arc<Executor>, etc). - Implements
hyper::rt::TimeronSmolTimer, which uses theasync_io::Timertype to create timeouts.
This crate should allow for smol's type to be used in hyper contexts.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~2.8–8MB
~158K SLoC