Skip to content

Commit

Permalink
chore: fix client build
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jan 8, 2025
1 parent e82a9bf commit 3106dce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ fn main() {
env::set_var("TENDERDASH_COMMITISH", DEFAULT_VERSION);
}

// build gRPC server and client
// note it should be safe to build both server and client; we will just not use
// them in the lib.rs

#[cfg(feature = "server")]
// build gRPC server (includes client)
tenderdash_proto_compiler::proto_compile(GenerationMode::GrpcServer);
#[cfg(all(feature = "client", not(feature = "server")))]
#[cfg(feature = "client")]
// build gRPC client only
tenderdash_proto_compiler::proto_compile(GenerationMode::GrpcClient);
// we always build nostd version
Expand Down

0 comments on commit 3106dce

Please sign in to comment.