Build script codegen initial impl

This commit is contained in:
cyqsimon committed 2023-12-11 10:20:10 +08:00
1 parent 52f94b4623
commit d1bc0ef0d4
4 files changed
+390 -5

No files matched your search

+3
View File
@@ -1,5 +1,6 @@
#[cfg(feature = "application")]
mod application;
mod syntax_mapping;
mod util;
fn main() -> anyhow::Result<()> {
@@ -7,6 +8,8 @@ fn main() -> anyhow::Result<()> {
// see: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed
println!("cargo:rerun-if-changed=build/");
syntax_mapping::build_static_mappings()?;
#[cfg(feature = "application")]
application::gen_man_and_comp()?;