21 releases (10 stable)

24.3.25 Apr 12, 2024
23.5.26 Jun 3, 2023
23.1.21 Jan 24, 2023
22.12.6 Jan 24, 2023
0.3.0 Jun 6, 2016

#38 in Encoding

Download history 325780/week @ 2024-07-21 335324/week @ 2024-07-28 320511/week @ 2024-08-04 348842/week @ 2024-08-11 364347/week @ 2024-08-18 354030/week @ 2024-08-25 315720/week @ 2024-09-01 346511/week @ 2024-09-08 312324/week @ 2024-09-15 343303/week @ 2024-09-22 340990/week @ 2024-09-29 369193/week @ 2024-10-06 337468/week @ 2024-10-13 394056/week @ 2024-10-20 413700/week @ 2024-10-27 346657/week @ 2024-11-03

1,507,059 downloads per month
Used in 358 crates (59 directly)

Apache-2.0

110KB
2K SLoC

Flatbuffers

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility. It was originally created at Google for game development and other performance-critical applications.

See our


lib.rs:

FlatBuffers

A library for memory-efficient serialization of data.

This crate provides runtime support for the FlatBuffers format in the Rust programming language. To use this crate, first generate code with the flatc compiler, as described here: https://google.github.io/flatbuffers/ Then, include that code into your project. Finally, add this crate to your Cargo.toml.

At this time, Rust support is experimental, and APIs may change between minor versions.

At this time, to generate Rust code, you will need the latest master version of flatc, available from here: https://github.com/google/flatbuffers (On OSX, you can install FlatBuffers from HEAD with the Homebrew package manager.)

Dependencies

~80–280KB