Crates.io | smol-hyper |
lib.rs | smol-hyper |
version | 0.1.1 |
source | src |
created_at | 2023-12-29 18:19:11.539138 |
updated_at | 2023-12-29 20:18:00.255877 |
description | Integrations between smol and hyper |
homepage | https://codeberg.org/notgull/smol-hyper |
repository | https://codeberg.org/notgull/smol-hyper |
max_upload_size | |
id | 1083536 |
size | 24,160 |
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:
hyper::rt::Read
and hyper::rt::Write
for
futures_io::AsyncRead
and futures_io::AsyncWrite
, respectively.hyper::rt::Executor
on [SmolExecutor
], which wraps around
something that derefs to smol::Executor
(&Executor
, Arc<Executor>
,
etc).hyper::rt::Timer
on [SmolTimer
], which uses the
async_io::Timer
type to create timeouts.This crate should allow for smol
's type to be used in hyper
contexts.
Licensed under either of
at your option.
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.