Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 This project adheres to [Semantic Versioning](https://semver.org).
6
7 ## [1.1.2] - 2025-10-02
8
9 Simplify `Buf::chunks_vectored` implementations for `BufList` and `Cursor<T>`.
10
11 ## [1.1.1] - 2025-10-01
12
13 ### Added
14
15 `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.
16
17 ## [1.1.0] - 2025-09-29
18
19 ### Changed
20
21 - 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 in `std::io::Cursor` introduced in Rust 1.80 (see [rust-lang/rust#125404]).
22 - MSRV updated to Rust 1.70.
23 - Internal improvement: computed start positions for chunks are now stored in a `OnceLock` on the `BufList` rather than being recomputed each time a `Cursor` is constructed. In the case where there might be many `Cursor` instances on the same `&BufList`, this allows for start positions to be shared. Thanks to [inanna-malick](https://github.com/inanna-malick) for your first cntribution!
24
25 ### Fixed
26
27 - Replaced obsolete `doc_auto_cfg` with `doc_cfg`, to fix Rust nightly builds with the `doc_cfg` flag enabled.
28
29 [rust-lang/rust#125404]: https://github.com/rust-lang/rust/pull/125404
30
31 ## [1.0.3] - 2023-04-09
32
33 - Documentation improvements.
34
35 ## [1.0.2] - 2023-04-09
36
37 ### Added
38
39 - A new type `Cursor` which wraps a `BufList` or `&BufList`, and implements `Seek`, `Read` and `BufRead`.
40 - `BufList` implements `From<T>` for any `T` that can be converted to `Bytes`. This creates a
41 `BufList` with a single chunk.
42 - `BufList::get_chunk` returns the chunk at the provided index.
43 - New optional features:
44 - `tokio1`: makes `Cursor` implement tokio's `AsyncSeek`, `AsyncRead` and `AsyncBufRead`
45 - `futures03`: makes `Cursor` implement futures's `AsyncSeek`, `AsyncRead` and `AsyncBufRead`.
46
47 ## [1.0.1] - 2023-02-16
48
49 ### Added
50
51 - Add recipes for converting a `BufList` into a `Stream` or a `TryStream`.
52
53 ## [1.0.0] - 2023-01-06
54
55 ### Added
56
57 - `BufList` now implements `Extend<B: Buf>`. This means you can now collect a stream of `Bytes`, or other `Buf` chunks, directly into a `BufList` via [`StreamExt::collect`](https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html#method.collect).
58 - Collecting a fallible stream is also possible, via [`TryStreamExt::try_collect`](https://docs.rs/futures/latest/futures/stream/trait.TryStreamExt.html#method.try_collect).
59
60 ### Changed
61
62 - `push_chunk` now has a type parameter `B: Buf` rather than `impl Buf`.
63
64 ## [0.1.3] - 2022-12-11
65
66 - Fix license indication in README: this crate is Apache-2.0 only, not MIT OR Apache-2.0.
67
68 ## [0.1.2] - 2022-12-10
69
70 - Fix intradoc links.
71
72 ## [0.1.1] - 2022-12-10
73
74 - Fixes to README.
75 - Add MSRV policy.
76
77 ## [0.1.0] - 2022-12-10
78
79 - Initial release.
80
81 [1.1.2]: https://github.com/sunshowers-code/buf-list/releases/tag/1.1.2
82 [1.1.1]: https://github.com/sunshowers-code/buf-list/releases/tag/1.1.1
83 [1.1.0]: https://github.com/sunshowers-code/buf-list/releases/tag/1.1.0
84 [1.0.3]: https://github.com/sunshowers-code/buf-list/releases/tag/1.0.3
85 [1.0.2]: https://github.com/sunshowers-code/buf-list/releases/tag/1.0.2
86 [1.0.1]: https://github.com/sunshowers-code/buf-list/releases/tag/1.0.1
87 [1.0.0]: https://github.com/sunshowers-code/buf-list/releases/tag/1.0.0
88 [0.1.3]: https://github.com/sunshowers-code/buf-list/releases/tag/0.1.3
89 [0.1.2]: https://github.com/sunshowers-code/buf-list/releases/tag/0.1.2
90 [0.1.1]: https://github.com/sunshowers-code/buf-list/releases/tag/0.1.1
91 [0.1.0]: https://github.com/sunshowers-code/buf-list/releases/tag/0.1.0