2 releases
0.1.1 | Dec 29, 2023 |
---|---|
0.1.0 | Dec 29, 2023 |
#1526 in Asynchronous
14,985 downloads per month
Used in 6 crates
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::Read
andhyper::rt::Write
forfutures_io::AsyncRead
andfutures_io::AsyncWrite
, respectively. - Implements
hyper::rt::Executor
onSmolExecutor
, which wraps around something that derefs tosmol::Executor
(&Executor
,Arc<Executor>
, etc). - Implements
hyper::rt::Timer
onSmolTimer
, which uses theasync_io::Timer
type 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
~3–13MB
~150K SLoC