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

#302 in Encoding

Download history 18410/week @ 2025-01-05 19220/week @ 2025-01-12 17398/week @ 2025-01-19 18831/week @ 2025-01-26 21727/week @ 2025-02-02 18847/week @ 2025-02-09 16085/week @ 2025-02-16 16656/week @ 2025-02-23 17448/week @ 2025-03-02 18399/week @ 2025-03-09 19747/week @ 2025-03-16 21599/week @ 2025-03-23 23705/week @ 2025-03-30 21943/week @ 2025-04-06 19516/week @ 2025-04-13 21748/week @ 2025-04-20

87,802 downloads per month
Used in 90 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

~2MB
~48K SLoC