8 releases (4 stable)

new 25.1.24 Jan 25, 2025
25.1.21 Jan 22, 2025
24.12.23 Dec 23, 2024
2.0.0 May 13, 2021
0.1.0 May 12, 2020

#1531 in Encoding

Download history 7749/week @ 2024-10-09 9529/week @ 2024-10-16 13659/week @ 2024-10-23 17795/week @ 2024-10-30 18883/week @ 2024-11-06 20087/week @ 2024-11-13 19953/week @ 2024-11-20 12795/week @ 2024-11-27 19236/week @ 2024-12-04 17536/week @ 2024-12-11 12287/week @ 2024-12-18 5752/week @ 2024-12-25 12526/week @ 2025-01-01 19119/week @ 2025-01-08 17190/week @ 2025-01-15 15570/week @ 2025-01-22

65,693 downloads per month
Used in 91 crates (32 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

~0.5–1.2MB
~26K SLoC