anybytes

Crates.ioanybytes
lib.rsanybytes
version0.11.0-alpha.1
sourcesrc
created_at2024-06-19 18:37:52.808984
updated_at2024-11-28 16:21:00.612474
descriptionA small library abstracting over bytes owning types in an extensible way.
homepage
repositoryhttps://github.com/triblespace/anybytes
max_upload_size
id1277288
size35,326
(somethingelseentirely)

documentation

README

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, Strings and Zerocopy types.

Comparison

Crate Active Extensible mmap support Zerocopy Integration Pyo3 Integration kani verified
anybytes 🚧
bytes
ownedbytes
minibytes 1

Acknowledgements

This library started as a fork of the minibyte library in facebooks sapling scm.

Footnotes

  1. Recently published again.

Commit count: 60

cargo fmt