mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 20:40:01 +00:00
[Rust] Ensure unions are referenced with the correct path (#6422)
* Add codegen test for namespaced unions * [Rust] Handle cross-namespace union use * [Rust] Test namespace handling * [Rust] Drop trailing whitespace in codegen * [Rust] Set flags in generate_code.bat to match .sh * [C#] Add additional namespace test file
This commit is contained in:
@@ -37,6 +37,12 @@ pub mod include_test1_generated;
|
||||
#[path = "../../include_test/sub/include_test2_generated.rs"]
|
||||
pub mod include_test2_generated;
|
||||
|
||||
#[path = "../../namespace_test/namespace_test1_generated.rs"]
|
||||
pub mod namespace_test1_generated;
|
||||
|
||||
#[path = "../../namespace_test/namespace_test2_generated.rs"]
|
||||
pub mod namespace_test2_generated;
|
||||
|
||||
#[path = "../../monster_test_generated.rs"]
|
||||
mod monster_test_generated;
|
||||
pub use monster_test_generated::my_game;
|
||||
|
||||
Reference in New Issue
Block a user