We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da44d2 commit 7bad5c3Copy full SHA for 7bad5c3
rust/vbare-compiler/src/lib.rs
@@ -80,12 +80,15 @@ pub fn process_schemas_with_config(
80
mod_content.push_str("// Auto-generated module file for schemas\n\n");
81
82
for name in all_names {
83
+ let module_name = name.replace('.', "_");
84
mod_content.push_str(&formatdoc!(
85
r#"
- pub mod {name} {{
86
+ pub mod {module_name} {{
87
include!(concat!(env!("OUT_DIR"), "/{name}_generated.rs"));
88
}}
89
"#,
90
+ name = name,
91
+ module_name = module_name,
92
));
93
}
94
0 commit comments