-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[rust] --gen-mutable support in rust timeline ? #5772
Comments
This issue is stale because it has been open 6 months with no activity. Please comment or this will be closed in 14 days. |
I just discovered flatbuffers. Does this mean that flatc produces Rust code that cannot mutate flatbuffers? |
Answering my own question: |
@mleonhard gen-mutable refers to a different concept. |
Rust support for in-place mutation is somewhat far away. Current priorities are:
|
Why do you close it if it's "somewhat far away" but not impossible? I was also hoping to use that feature. Is C++ really the only language that has it? |
If you want memory stored on disk that reflects some kind of thread-safe memory pool (bar unbounded Vectors), you could look into mmap. In case of any mutations, e.g. a mutating worker thread, could use channels to pass on messages to any async receiver, to start reading the mutated data. Afaik, Builder and Table etc. don't care where they get their slice from. |
This issue is stale because it has been open 6 months with no activity. Please comment or label |
This issue was automatically closed due to no activity for 6 months plus the 14 day notice period. |
Do we have API to in place mutation in rust ? currently using flatc (/snap/flatbuffers/191/bin/flatc) when I am generating code with --gen-mutable flag I do'n't see any generated code difference.
Wanted to perform in place mutation (Scalar values incremental updates) of bytes (stored in disk) & again persisting to disk
Any pointers on how to achieve the same using rust ?
The text was updated successfully, but these errors were encountered: