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

#2029 in Encoding

Download history 4768/week @ 2024-07-22 5609/week @ 2024-07-29 6499/week @ 2024-08-05 6074/week @ 2024-08-12 6118/week @ 2024-08-19 8797/week @ 2024-08-26 9444/week @ 2024-09-02 10022/week @ 2024-09-09 11147/week @ 2024-09-16 9904/week @ 2024-09-23 8570/week @ 2024-09-30 7948/week @ 2024-10-07 8198/week @ 2024-10-14 11162/week @ 2024-10-21 18510/week @ 2024-10-28 17714/week @ 2024-11-04

55,942 downloads per month
Used in 76 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.2MB
~26K SLoC