We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3558ccf + 6a057c2 commit c32e7b7Copy full SHA for c32e7b7
crates/tx/build.rs
@@ -15,7 +15,6 @@ fn main() {
15
println!("cargo:rerun-if-changed={}", PROTO_SRC);
16
17
tonic_build::configure()
18
- .out_dir("src/proto/generated")
19
.protoc_arg("--experimental_allow_proto3_optional")
20
.compile_protos(&[format!("{}/types.proto", PROTO_SRC)], &[PROTO_SRC])
21
.unwrap();
crates/tx/src/proto/generated.rs
@@ -1,3 +1,6 @@
1
#![allow(missing_docs)]
2
3
-pub mod types;
+/// Tonic tx types generated from protobuf definitions at build
4
+pub mod types {
5
+ include!(concat!(env!("OUT_DIR"), "/types.rs"));
6
+}
0 commit comments