19 releases (8 stable)

23.1.21 Jan 24, 2023
22.12.6 Jan 24, 2023
22.10.26 Nov 3, 2022
2.1.2 Apr 25, 2022
0.3.0 Jun 6, 2016

#8 in Memory management

Download history 39903/week @ 2022-10-14 39071/week @ 2022-10-21 36429/week @ 2022-10-28 40863/week @ 2022-11-04 40216/week @ 2022-11-11 29805/week @ 2022-11-18 35546/week @ 2022-11-25 37907/week @ 2022-12-02 36319/week @ 2022-12-09 33137/week @ 2022-12-16 19592/week @ 2022-12-23 27770/week @ 2022-12-30 38586/week @ 2023-01-06 39909/week @ 2023-01-13 43583/week @ 2023-01-20 35443/week @ 2023-01-27

163,617 downloads per month
Used in 113 crates (31 directly)

Apache-2.0

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

~115KB