#bytes #zero-copy #buffers #no-std

no-std bytes-utils

Additional utilities for working with the bytes crate

3 releases

0.1.2 Mar 19, 2022
0.1.1 Jan 31, 2021
0.1.0 Jan 22, 2021

#207 in Data structures

Download history 23658/week @ 2022-04-27 25122/week @ 2022-05-04 25711/week @ 2022-05-11 24099/week @ 2022-05-18 23047/week @ 2022-05-25 26111/week @ 2022-06-01 30944/week @ 2022-06-08 27748/week @ 2022-06-15 31360/week @ 2022-06-22 28327/week @ 2022-06-29 31687/week @ 2022-07-06 32965/week @ 2022-07-13 34931/week @ 2022-07-20 37182/week @ 2022-07-27 41252/week @ 2022-08-03 31876/week @ 2022-08-10

150,985 downloads per month
Used in 414 crates (10 directly)

Apache-2.0/MIT

55KB
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

~195KB