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

#1247 in Encoding

Download history 7581/week @ 2023-12-11 8627/week @ 2023-12-18 2668/week @ 2023-12-25 6957/week @ 2024-01-01 10394/week @ 2024-01-08 8930/week @ 2024-01-15 9511/week @ 2024-01-22 8750/week @ 2024-01-29 7785/week @ 2024-02-05 9464/week @ 2024-02-12 5244/week @ 2024-02-19 6296/week @ 2024-02-26 6369/week @ 2024-03-04 5140/week @ 2024-03-11 6196/week @ 2024-03-18 5525/week @ 2024-03-25

23,360 downloads per month
Used in 57 crates (24 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

~1.3–1.8MB
~42K SLoC