VNOX-Client/build.rs
2026-10-24 16:51:15 +02:00

13 lines
717 B
Rust

fn main() {
// Use the checked-in schema so this repository builds independently of the server checkout.
prost_build::Config::new()
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.compile_protos(&["protocol/lnex.proto"], &["protocol"])
.expect("compile canonical LNEx protocol");
println!("cargo:rerun-if-changed=protocol/lnex.proto");
let config = slint_build::CompilerConfiguration::new()
.with_style("fluent".into())
.with_default_translation_context(slint_build::DefaultTranslationContext::None)
.with_bundled_translations("translations");
slint_build::compile_with_config("src/ui/slint/main.slint", config).unwrap();
}