Crates.io | anybytes |
lib.rs | anybytes |
version | 0.10.0-alpha.1 |
source | src |
created_at | 2024-06-19 18:37:52.808984 |
updated_at | 2024-10-21 14:00:14.411303 |
description | A small library abstracting over bytes owning types in an extensible way. |
homepage | |
repository | https://github.com/triblespace/anybytes |
max_upload_size | |
id | 1277288 |
size | 32,843 |
This Library is still pre-1.0.0 the API is therefore in heavy flux!
A small library for conveniently working with immutables bytes from different sources, providing zero-copy slicing and cloning.
Access itself is extremely cheap via no-op conversion to a &[u8]
.
The storage mechanism backing the bytes can be extended
and is implemented for a variety of sources already,
including other byte handling crates Bytes
, mmap-ed files,
String
s and Zerocopy
types.
Crate | Active | Extensible | Zerocopy Integration | mmap support | kani verified |
---|---|---|---|---|---|
anybytes | ✅ | ✅ | ✅ | ✅ | 🚧 |
bytes | ✅ | ✅ | ❌ | ❌ | ❌ |
ownedbytes | ✅ | ✅ | ❌ | ✅ | ❌ |
minibytes | ❌1 | ✅ | ❌ | ✅ | ❌ |
This library started as a fork of the minibyte library in facebooks sapling scm.
No longer maintained as an individual crate. ↩