mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
Rust 1.89 added a new lifetime-related warning: <https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint> The Rust code generator currently emits code which trips this warning. This very small PR fixes the issue for the relevant generated functions and for the Rust flexbuffers code. Fixes #8705
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.