feat(tvix/nix-compat): add BytesReader
This adds AsyncRead counterpart for read_bytes. Change-Id: I751da9944984c7a523abee305f8f8a050e705f04 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11385 Tested-by: BuildkiteCI Reviewed-by: raitobezarius <tvl@lahfa.xyz> Reviewed-by: Brian Olsen <me@griff.name> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
82cf89ee6e
commit
eeca2d92e2
6 changed files with 481 additions and 4 deletions
|
|
@ -4,9 +4,13 @@
|
|||
#[cfg(feature = "async")]
|
||||
pub mod bytes;
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
mod bytes_reader;
|
||||
#[cfg(feature = "async")]
|
||||
mod bytes_writer;
|
||||
#[cfg(feature = "async")]
|
||||
pub use bytes_reader::BytesReader;
|
||||
#[cfg(feature = "async")]
|
||||
pub use bytes_writer::BytesWriter;
|
||||
|
||||
#[cfg(feature = "async")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue