Files
clArk/arkd/build.rs
Steven Roose 55bc72ffae WIP on ark txs
2024-03-14 17:59:36 +00:00

20 lines
454 B
Rust

fn main() {
let protos = &["rpc-protos/arkd.proto"];
// server
tonic_build::configure()
.build_server(true)
.build_client(false)
.out_dir("src/rpc")
.compile(protos, &[] as &[&str])
.expect("failed to compile arkd server protos");
// client
tonic_build::configure()
.build_client(true)
.build_server(false)
.out_dir("../arkd-rpc-client/src/")
.compile(protos, &[] as &[&str])
.expect("failed to compile arkd client protos");
}