merge some upstream improvements, set new checkpoint blockhigh
This commit is contained in:
17
lib/build.rs
17
lib/build.rs
@@ -1,12 +1,11 @@
|
||||
fn main() {
|
||||
// Build proto files
|
||||
tower_grpc_build::Config::new()
|
||||
.enable_server(false)
|
||||
.enable_client(true)
|
||||
.build(
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::configure()
|
||||
.build_server(false)
|
||||
.compile(
|
||||
&["proto/service.proto", "proto/compact_formats.proto"],
|
||||
&["proto"],
|
||||
)
|
||||
.unwrap_or_else(|e| panic!("protobuf compilation failed: {}", e));
|
||||
)?;
|
||||
println!("cargo:rerun-if-changed=proto/service.proto");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user