11 releases (7 stable)

25.12.19 Dec 19, 2025
25.9.23 Sep 24, 2025
25.2.10 Feb 11, 2025
24.12.23 Dec 23, 2024
0.1.1 Jun 29, 2020

#1653 in Encoding

Download history 119483/week @ 2025-10-20 151685/week @ 2025-10-27 149624/week @ 2025-11-03 146253/week @ 2025-11-10 131959/week @ 2025-11-17 14293/week @ 2025-11-24 15813/week @ 2025-12-01 13211/week @ 2025-12-08 13926/week @ 2025-12-15 7462/week @ 2025-12-22 6247/week @ 2025-12-29 10635/week @ 2026-01-05 11325/week @ 2026-01-12 11156/week @ 2026-01-19 11404/week @ 2026-01-26 11019/week @ 2026-02-02

45,765 downloads per month
Used in 79 crates (37 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

~2.5MB
~53K SLoC