Releases: sunshowers-code/buf-list
Releases · sunshowers-code/buf-list
buf-list 1.1.2
Simplify Buf::chunks_vectored implementations for BufList and Cursor<T>.
buf-list 1.1.1
Added
bytes::Buf implementations for Cursor<BufList> and Cursor<&BufList>, to go with the existing bytes::Buf implementation for BufList itself. This way, the same BufList can have multiple cursors over it that all use the bytes::Buf implementation.
buf-list 1.1.0
Changed
- With
Cursor::read_exact, if there aren't enough bytes remaining, the position will be set to the end of the buffer. This mirrors the same behavior change instd::io::Cursorintroduced in Rust 1.80 (see rust-lang/rust#125404). - MSRV updated to Rust 1.70.
- Internal improvement: computed start positions for chunks are now stored in a
OnceLockon theBufListrather than being recomputed each time aCursoris constructed. In the case where there might be manyCursorinstances on the same&BufList, this allows for start positions to be shared. Thanks to inanna-malick for your first cntribution!
Fixed
- Replaced obsolete
doc_auto_cfgwithdoc_cfg, to fix Rust nightly builds with thedoc_cfgflag enabled.
buf-list 1.0.3
- Documentation improvements.
buf-list 1.0.2
Added
- A new type
Cursorwhich wraps aBufListor&BufList, and implementsSeek,ReadandBufRead. BufListimplementsFrom<T>for anyTthat can be converted toBytes. This creates a
BufListwith a single chunk.BufList::get_chunkreturns the chunk at the provided index.- New optional features:
tokio1: makesCursorimplement tokio'sAsyncSeek,AsyncReadandAsyncBufReadfutures03: makesCursorimplement futures'sAsyncSeek,AsyncReadandAsyncBufRead.
buf-list 1.0.1
Added
- Add recipes for converting a
BufListinto aStreamor aTryStream.
buf-list 1.0.0
Added
BufListnow implementsExtend<B: Buf>. This means you can now collect a stream ofBytes, or otherBufchunks, directly into aBufListviaStreamExt::collect.- Collecting a fallible stream is also possible, via
TryStreamExt::try_collect.
- Collecting a fallible stream is also possible, via
Changed
push_chunknow has a type parameterB: Bufrather thanimpl Buf.
buf-list 0.1.3
- Fix license indication in README: this crate is Apache-2.0 only, not MIT OR Apache-2.0.
buf-list 0.1.2
- Fix intradoc links.
buf-list 0.1.1
- Fixes to README.
- Add MSRV policy.