We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0210c7a + e092674 commit a958466Copy full SHA for a958466
README.md
@@ -65,6 +65,7 @@ Currently we only support generating async codes by using ttrpc-codegen
65
.include("protocols/protos")
66
.rust_protobuf()
67
.customize(Customize {
68
+ gen_mod: true, // Gen mod will add mod.rs in out_dir.It's compatible with protobuf's gen_mod_rs
69
async_all: true, // It's the key option.
70
..Default::default()
71
})
@@ -76,6 +77,7 @@ Provide customize option
76
77
- `async_all`: generate async codes for both server and client
78
- `async_server`: generate async codes for server
79
- `async_client`: generate async codes for client
80
+- `gen_mod`: generate mod.rs in out_dir
81
82
> See more in `example/build.rs`
83
0 commit comments