Files
yaak/src-tauri/yaak_plugin_runtime/build.rs
2024-08-08 21:30:59 -07:00

10 lines
308 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
// Tell ts-rs where to generate types to
println!("cargo:rustc-env=TS_RS_EXPORT_DIR=../../plugin-runtime-types/src/gen");
// Compile protobuf types
tonic_build::compile_protos("../../proto/plugins/runtime.proto")?;
Ok(())
}