mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
8 lines
356 B
Rust
8 lines
356 B
Rust
fn main() {
|
|
let protoc = protoc_bin_vendored::protoc_bin_path().unwrap();
|
|
unsafe { std::env::set_var("PROTOC", protoc) };
|
|
tonic_prost_build::configure()
|
|
.protoc_arg("--experimental_allow_proto3_optional")
|
|
.compile_protos(&["protos/hold.proto"], &["protos"])
|
|
.unwrap_or_else(|e| panic!("Could not build protos: {e}"));
|
|
}
|