Skip to content
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

get_root_as_* functions not generated [Rust, 23.5.26, Linux] #8235

Open
toumorokoshi opened this issue Feb 10, 2024 · 1 comment
Open

get_root_as_* functions not generated [Rust, 23.5.26, Linux] #8235

toumorokoshi opened this issue Feb 10, 2024 · 1 comment

Comments

@toumorokoshi
Copy link

Thanks for all the work on flatbuffers!

I'm trying to use it for a hobby project of mine, and my generated code doesn't have the get_root_as_* structs that seem to be implied from the example to convert a buffer back to a struct: https://flatbuffers.dev/flatbuffers_guide_use_rust.html.

here is a link to my repository: https://github.com/toumorokoshi/profiling-sandbox/tree/main/src.

I used flatc 23.5.6.

@toumorokoshi
Copy link
Author

Actually looking at the source code in this repo and the example, I see I shoudl be using flatbuffers::root now: https://github.com/google/flatbuffers/blob/master/samples/sample_binary.rs.

Does the documentation need to be updated? I could send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant