https://github.com/veritius/unbytes
https://github.com/veritius/unbytes
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/veritius/unbytes
- Owner: Veritius
- License: apache-2.0
- Created: 2024-03-20T04:40:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T04:04:55.000Z (about 2 years ago)
- Last Synced: 2024-04-26T23:40:48.171Z (about 2 years ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
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`, 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.