9 releases (5 stable)

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

#852 in Encoding

Download history 20958/week @ 2024-11-15 15496/week @ 2024-11-22 16346/week @ 2024-11-29 18240/week @ 2024-12-06 17599/week @ 2024-12-13 7016/week @ 2024-12-20 7198/week @ 2024-12-27 16942/week @ 2025-01-03 19161/week @ 2025-01-10 17643/week @ 2025-01-17 18515/week @ 2025-01-24 21427/week @ 2025-01-31 19539/week @ 2025-02-07 16340/week @ 2025-02-14 16534/week @ 2025-02-21 14442/week @ 2025-02-28

70,200 downloads per month
Used in 95 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

~0.5–1.1MB
~25K SLoC