unbytes

Crates.iounbytes
lib.rsunbytes
version0.5.0
sourcesrc
created_at2024-03-20 04:41:59.157409
updated_at2024-07-03 14:11:36.526018
descriptionPanic-free reading of bytes.
homepage
repositoryhttps://github.com/veritius/unbytes
max_upload_size
id1179992
size23,268
Veritius (Veritius)

documentation

README

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.
  • maypanic: Functionality that may panic if used improperly, like a Buf implementation.
Commit count: 8

cargo fmt