15 releases (4 stable)

2.1.2 Apr 25, 2022
2.1.1 Feb 25, 2022
2.0.0 May 19, 2021
0.9.0 May 2, 2021
0.3.0 Jun 6, 2016

#43 in Memory management

Download history 21775/week @ 2022-01-29 26482/week @ 2022-02-05 25383/week @ 2022-02-12 23397/week @ 2022-02-19 25239/week @ 2022-02-26 28266/week @ 2022-03-05 27533/week @ 2022-03-12 25521/week @ 2022-03-19 27789/week @ 2022-03-26 31072/week @ 2022-04-02 27716/week @ 2022-04-09 24871/week @ 2022-04-16 26128/week @ 2022-04-23 21932/week @ 2022-04-30 27456/week @ 2022-05-07 27511/week @ 2022-05-14

107,424 downloads per month
Used in less than 22 crates

Apache-2.0

99KB
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

~0.3–1MB
~21K SLoC