flatbuffers
flatbuffers copied to clipboard
[Rust] add function to retrieve file identifier
This adds a way for us to get the file identifier directly via Rust.
❤️🔥
Sorry for the delayed review, I was on vacation.
Broadly LGTM but,
- Can you add a test to
tests/rust_usage_test/tests/integration_test.rs
or somewhere? - (optional) Imo, we should be using
[u8; 4]
instead of&str
+ assert. Flatbuffers requires 4 characters and we may as well make it a compile-time error. This does meanbuffer_has_identifier
needs to be marked deprecated and we'd need a new name.
@rileylyman Any desire to continue with this?
Closing for now, feel free to reopen.