5 releases (1 stable)

2.0.0 May 13, 2021
0.2.2 Jan 19, 2021
0.2.1 Nov 13, 2020
0.1.1 Jun 29, 2020
0.1.0 May 12, 2020

#1372 in Encoding

Download history 5785/week @ 2024-03-14 6128/week @ 2024-03-21 6024/week @ 2024-03-28 6368/week @ 2024-04-04 7141/week @ 2024-04-11 5873/week @ 2024-04-18 4818/week @ 2024-04-25 5086/week @ 2024-05-02 5169/week @ 2024-05-09 5494/week @ 2024-05-16 5178/week @ 2024-05-23 4585/week @ 2024-05-30 4733/week @ 2024-06-06 3958/week @ 2024-06-13 6269/week @ 2024-06-20 4450/week @ 2024-06-27

20,038 downloads per month
Used in 59 crates (26 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.6–1.2MB
~27K SLoC