mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 23:16:59 +01:00
10 lines
308 B
Rust
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(())
|
|
}
|