Crates.io | unbytes |
lib.rs | unbytes |
version | 0.5.0 |
source | src |
created_at | 2024-03-20 04:41:59.157409 |
updated_at | 2024-07-03 14:11:36.526018 |
description | Panic-free reading of bytes. |
homepage | |
repository | https://github.com/veritius/unbytes |
max_upload_size | |
id | 1179992 |
size | 23,268 |
Ergonomic, performant, owned forward-only cursors based on bytes
, with some bonus features.
unbytes
gives the following guarantees:
Note that implementations involving the bytes
crate can allocate. Traits like Into<Bytes>
, especially on Vec
s, 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.