mirror of
https://github.com/tlsnotary/tlsn-utils.git
synced 2026-01-07 22:24:00 -05:00
* feat(futures-plex): replace BytesMut with fixed-size buffer and add zero-copy APIs - Remove bytes crate dependency - Use Box<[u8]> with ptr/len tracking instead of BytesMut - Add AsyncBufRead implementation for SimplexStream - Add poll_get, poll_mut, get, get_mut for direct buffer access - Add advance, advance_mut for cursor management - Add poll_read_to, poll_write_from for zero-copy transfers - Add ReadGuard/WriteGuard and poll_lock methods for DuplexStream - Add unit tests for new functionality Co-Authored-By: sinu <65924192+sinui0@users.noreply.github.com> * make it a ring buffer --------- Co-authored-by: sinu <65924192+sinui0@users.noreply.github.com>
futures-plex
Port of tokio's SimplexStream and DuplexStream for the futures ecosystem.
This crate provides in-memory implementations for AsyncRead and AsyncWrite.