Rust: remove unneeded and now broken bazel workaround

This commit is contained in:
Paolo Tranquilli
2025-02-07 10:59:11 +01:00
parent 75b5493c9b
commit f6301b8ea8

View File

@@ -150,10 +150,7 @@ fn write_schema(
.map(|node| node_src_to_schema_class(node, &super_types)),
);
// the concat dance is currently required by bazel
let template = mustache::compile_str(include_str!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/templates/schema.mustache"
)))?;
let template = mustache::compile_str(include_str!("templates/schema.mustache"))?;
let res = template.render_to_string(&schema)?;
Ok(fix_blank_lines(&res))
}
@@ -558,10 +555,7 @@ fn write_extractor(grammar: &AstSrc) -> mustache::Result<String> {
nodes: grammar.nodes.iter().map(node_to_extractor_info).collect(),
};
// the concat dance is currently required by bazel
let template = mustache::compile_str(include_str!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/src/templates/extractor.mustache"
)))?;
let template = mustache::compile_str(include_str!("templates/extractor.mustache"))?;
let res = template.render_to_string(&extractor_info)?;
Ok(fix_blank_lines(&res))
}