3 releases (breaking)

0.3.0 Jan 27, 2023
0.2.0 Apr 2, 2020
0.1.0 Mar 13, 2020

#17 in #cloning

Download history 112/week @ 2024-07-22 135/week @ 2024-07-29 125/week @ 2024-08-05 111/week @ 2024-08-12 142/week @ 2024-08-19 197/week @ 2024-08-26 212/week @ 2024-09-02 135/week @ 2024-09-09 95/week @ 2024-09-16 137/week @ 2024-09-23 104/week @ 2024-09-30 103/week @ 2024-10-07 215/week @ 2024-10-14 94/week @ 2024-10-21 80/week @ 2024-10-28 76/week @ 2024-11-04

468 downloads per month
Used in 23 crates (4 directly)

MIT license

21KB
502 lines

minibytes

This create provides the Bytes type. It is similar to &[u8]: cloning or slicing are zero-copy. Unlike &[u8], Bytes does not have lifetime. This is done by maintaining the life cycle of the underlying storage using reference count.

Aside from supporting Vec<u8> as the underlying storage, Bytes also supports memmap::Mmap. Libraries can implement BytesOwner for other types to further extend storage support.

Dependencies

~0.3–1.1MB
~23K SLoC