#byte #buffer #zero-copy #no-std

no-std bytes-utils

Additional utilities for working with the bytes crate

5 releases

0.1.4 Nov 17, 2023
0.1.3 Sep 2, 2022
0.1.2 Mar 19, 2022
0.1.1 Jan 31, 2021
0.1.0 Jan 22, 2021

#79 in Data structures

Download history 98496/week @ 2023-12-24 182935/week @ 2023-12-31 250729/week @ 2024-01-07 254063/week @ 2024-01-14 276639/week @ 2024-01-21 281492/week @ 2024-01-28 275482/week @ 2024-02-04 282622/week @ 2024-02-11 267763/week @ 2024-02-18 315390/week @ 2024-02-25 312932/week @ 2024-03-03 319556/week @ 2024-03-10 313621/week @ 2024-03-17 321739/week @ 2024-03-24 325775/week @ 2024-03-31 272218/week @ 2024-04-07

1,245,928 downloads per month
Used in 797 crates (11 directly)

Apache-2.0/MIT

59KB
1K SLoC

Additional utils for the bytes crate

Actions Status codecov docs

Few utilities to make working with the types and traits in the bytes crate even more convenient and powerful.

Currently contains:

  • SegmentedBuf that can concatenate multiple Bufs into a bigger one without copying.
  • Str and StrMut, string wrappers around Bytes and BytesMut.

Features

no_std builds are supported by disabling the std feature, which is enabled by default.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~165–380KB