2 unstable releases

0.3.0 Mar 25, 2024
0.2.2 Mar 20, 2024
0.2.1 Mar 20, 2024
0.2.0 Mar 20, 2024
0.1.0 Mar 20, 2024

#334 in Memory management

Download history 434/week @ 2024-03-20 29/week @ 2024-03-27 21/week @ 2024-04-03 2/week @ 2024-04-10

66 downloads per month

MIT/Apache

9KB
152 lines

unbytes

Ergonomic, performant, owned forward-only cursors based on bytes, with some bonus features.

unbytes gives the following guarantees:

  • Never panics.
  • Never copies.
  • Never allocates.

Note that implementations involving the bytes crate can allocate. Traits like Into<Bytes>, especially on Vecs, are very likely to reallocate. unbytes can't do anything about that.

The following feature flags are available, but none are enabled by default.

  • std: Standard library support, like an std::io::Read implementation.

Dependencies

~170KB