compact_bytes

Crates.iocompact_bytes
lib.rscompact_bytes
version0.2.1
created_at2023-10-31 21:37:54.389996+00
updated_at2025-06-14 02:49:01.63825+00
descriptionA memory efficient bytes container that transparently stores bytes on the stack, when possible
homepagehttps://github.com/ParkMyCar/compact_bytes
repositoryhttps://github.com/ParkMyCar/compact_bytes
max_upload_size
id1020400
size84,875
Parker Timmerman (ParkMyCar)

documentation

README

compact_bytes

A memory efficient bytes container that can store up to 23 bytes on the stack.




Note from the Maintainer

This crate was mostly developed for Materialize out of a need for a more compact bytes container. It entirely borrows implementation from compact_str which has been thoughtfully maintained over the past few years by a number of dedicated contributors, including:

For now this repository exists separately from compact_str because it's easier to get started that way. But the plan is to eventually merge the two.

Commit count: 43

cargo fmt