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

#300 in Encoding

Download history 4826/week @ 2024-12-23 8989/week @ 2024-12-30 18795/week @ 2025-01-06 18945/week @ 2025-01-13 17332/week @ 2025-01-20 19199/week @ 2025-01-27 21345/week @ 2025-02-03 18930/week @ 2025-02-10 16196/week @ 2025-02-17 16444/week @ 2025-02-24 17534/week @ 2025-03-03 18316/week @ 2025-03-10 19966/week @ 2025-03-17 21610/week @ 2025-03-24 24419/week @ 2025-03-31 20374/week @ 2025-04-07

86,947 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

~0.5–1.1MB
~25K SLoC