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

#1201 in Encoding

Download history 8403/week @ 2024-01-03 9623/week @ 2024-01-10 9879/week @ 2024-01-17 9065/week @ 2024-01-24 8220/week @ 2024-01-31 8121/week @ 2024-02-07 8607/week @ 2024-02-14 5537/week @ 2024-02-21 6635/week @ 2024-02-28 5403/week @ 2024-03-06 5532/week @ 2024-03-13 6380/week @ 2024-03-20 5374/week @ 2024-03-27 7141/week @ 2024-04-03 6570/week @ 2024-04-10 5212/week @ 2024-04-17

25,456 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.4–1.9MB
~43K SLoC