[rust] flatc v23.5.26 generates code that doesn't match flatbuffers v23.5.26 crate.
FlatBufferBuilder in the latest crate version doesn't have a generic Allocator argument, while the autogenerated code from flatc v23.5.26 contains fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>.
As far as I can see, building with Rust is completely broken by this.
Workaround: refer directly to github in Cargo.toml...
flatbuffers = { git = "https://github.com/google/flatbuffers", features = ["serialize"] }
@bassmanitram I used the "23.5.9" version, but your solution also works.
Yeah, that's probably more stable, thinking about it :)
Hey, so I authored this PR https://github.com/google/flatbuffers/pull/8106 that would make sense to have been the culprit. I didn't run into issues but we also pull the entire flatbuffers repo together and compile flatc from source. I see the new Allocator trait when I run cargo doc from the latest master so I'm wondering why it doesn't show up on the flatbuffers crate
@adsnaider Sorry, I initially thought this problem was caused by PR, but after investigation, I found out that this problem was caused by my special usage
Just got bit by this .... any update on this issue?
@CasperN Sorry to tag you out of the blue, but I see you merged #8106 - do you know how to update the flatbuffers crate?
@fawdlstty what was causing your issue? I'm seeing the same error on my end and am unsure how to resolve. Thanks!
@rukmal Can the handling methods mentioned by others earlier not solve your problem? If it cannot be solved, you may have encountered another problem. You can add some supplements to your question