flatbuffers icon indicating copy to clipboard operation
flatbuffers copied to clipboard

Improve Rust flatbuffers crate

Open Muon opened this issue 7 months ago • 1 comments

This PR fixes several bugs and adds support for missing features to the flatbuffers and flatbuffers_reflection crates.

  • fixes https://github.com/google/flatbuffers/issues/8550
  • fixes https://github.com/google/flatbuffers/issues/8548
  • adds reflection support for vectors of values of unknown type
  • adds verification support for vectors of unions
  • makes the unsafe get_field_* functions infallible as their success is implied by the unsafe precondition
  • adds the unsafe function Vector::cast() for casting between vector types
  • exposes get_type_size()
  • adds Struct::bytes() to get a slice to a byte buffer which starts with the struct value

Muon avatar Apr 07 '25 00:04 Muon

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Apr 07 '25 00:04 google-cla[bot]