9 releases (5 stable)

new 25.2.10 Feb 11, 2025
25.1.24 Jan 25, 2025
24.12.23 Dec 23, 2024
2.0.0 May 13, 2021
0.1.0 May 12, 2020

#1404 in Encoding

Download history 11680/week @ 2024-10-22 19176/week @ 2024-10-29 18246/week @ 2024-11-05 19763/week @ 2024-11-12 20748/week @ 2024-11-19 12407/week @ 2024-11-26 19502/week @ 2024-12-03 17804/week @ 2024-12-10 14379/week @ 2024-12-17 5372/week @ 2024-12-24 10297/week @ 2024-12-31 18885/week @ 2025-01-07 18065/week @ 2025-01-14 18296/week @ 2025-01-21 20100/week @ 2025-01-28 17548/week @ 2025-02-04

76,849 downloads per month
Used in 94 crates (33 directly)

Apache-2.0

125KB
2.5K SLoC

Flexbuffers

Flexbuffers is a schema-less binary format developed at Google. FlexBuffers can be accessed without parsing, copying, or allocation. This is a huge win for efficiency, memory friendly-ness, and allows for unique use cases such as mmap-ing large amounts of free-form data.

FlexBuffers' design and implementation allows for a very compact encoding, with automatic sizing of containers to their smallest possible representation (8/16/32/64 bits). Many values and offsets can be encoded in just 8 bits.

FlexBuffers supports Serde for automatically serializing Rust data structures into its binary format.

See Examples for Usage:

Flexbuffers is the schema-less cousin of Flatbuffers.

Dependencies

~2MB
~48K SLoC