Skip to content

Commit

Permalink
Merge pull request #4351 from anoma/tomas/fix-tonic-out-dir
Browse files Browse the repository at this point in the history
tx: build tonic artifacts into OUT_DIR
  • Loading branch information
mergify[bot] authored Feb 7, 2025
2 parents 3558ccf + 6a057c2 commit c32e7b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion crates/tx/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ fn main() {
println!("cargo:rerun-if-changed={}", PROTO_SRC);

tonic_build::configure()
.out_dir("src/proto/generated")
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(&[format!("{}/types.proto", PROTO_SRC)], &[PROTO_SRC])
.unwrap();
Expand Down
5 changes: 4 additions & 1 deletion crates/tx/src/proto/generated.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![allow(missing_docs)]

pub mod types;
/// Tonic tx types generated from protobuf definitions at build
pub mod types {
include!(concat!(env!("OUT_DIR"), "/types.rs"));
}

0 comments on commit c32e7b7

Please sign in to comment.