6 releases (2 stable)

new 24.12.23 Dec 23, 2024
2.0.0 May 13, 2021
0.2.2 Jan 19, 2021
0.2.1 Nov 13, 2020
0.1.0 May 12, 2020

#1372 in Encoding

Download history 10391/week @ 2024-09-07 10593/week @ 2024-09-14 9428/week @ 2024-09-21 9421/week @ 2024-09-28 7938/week @ 2024-10-05 7352/week @ 2024-10-12 12170/week @ 2024-10-19 17687/week @ 2024-10-26 17813/week @ 2024-11-02 18926/week @ 2024-11-09 20767/week @ 2024-11-16 13465/week @ 2024-11-23 18818/week @ 2024-11-30 17770/week @ 2024-12-07 17253/week @ 2024-12-14 5011/week @ 2024-12-21

60,075 downloads per month
Used in 90 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
~47K SLoC