mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 22:56:27 +00:00
Add Parsing Completed function for Rust (#7084)
This commit is contained in:
@@ -194,6 +194,11 @@ bool IsOptionalToBuilder(const FieldDef &field) {
|
||||
|
||||
bool GenerateRustModuleRootFile(const Parser &parser,
|
||||
const std::string &output_dir) {
|
||||
if (parser.opts.one_file) {
|
||||
// Don't generate a root file when generating one file. This isn't an error
|
||||
// so return true.
|
||||
return true;
|
||||
}
|
||||
// We gather the symbols into a tree of namespaces (which are rust mods) and
|
||||
// generate a file that gathers them all.
|
||||
struct Module {
|
||||
|
||||
Reference in New Issue
Block a user