Skip to content

Improve Rust flatbuffers crate #8572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Improve Rust flatbuffers crate #8572

wants to merge 23 commits into from

Conversation

Muon
Copy link

@Muon Muon commented Apr 7, 2025

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

Muon added 19 commits March 4, 2025 13:36
This PR fixes several bugs and adds support for missing features to the flatbuffers and flatbuffers_reflection crates.

* fixes google#8550
* fixes google#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
Copy link

google-cla bot commented Apr 7, 2025

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.

@github-actions github-actions bot added the rust label Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants