mirror of
https://github.com/aljazceru/clArk.git
synced 2025-12-17 13:14:20 +01:00
20 lines
454 B
Rust
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");
|
|
}
|