about summary refs log tree commit diff
path: root/tvix/nix-compat/src/wire/mod.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-08T14·59+0300
committerflokli <flokli@flokli.de>2024-04-13T10·09+0000
commiteeca2d92e236f092b4b26512c40362a791a6b307 (patch)
tree5066ef9f5d1048e418e446d929d008dc5a98655d /tvix/nix-compat/src/wire/mod.rs
parent82cf89ee6e22ec206140aa6b64b7347bdb44d130 (diff)
feat(tvix/nix-compat): add BytesReader r/7894
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>
Diffstat (limited to 'tvix/nix-compat/src/wire/mod.rs')
-rw-r--r--tvix/nix-compat/src/wire/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/nix-compat/src/wire/mod.rs b/tvix/nix-compat/src/wire/mod.rs
index cb14e4d420b7..56ea364dffb7 100644
--- a/tvix/nix-compat/src/wire/mod.rs
+++ b/tvix/nix-compat/src/wire/mod.rs
@@ -5,8 +5,12 @@
 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")]