Skip to content

Commit e092674

Browse files
committed
Modify readme
Add gen_mod feature in readme Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent 0210c7a commit e092674

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Currently we only support generating async codes by using ttrpc-codegen
6565
.include("protocols/protos")
6666
.rust_protobuf()
6767
.customize(Customize {
68+
gen_mod: true, // Gen mod will add mod.rs in out_dir.It's compatible with protobuf's gen_mod_rs
6869
async_all: true, // It's the key option.
6970
..Default::default()
7071
})
@@ -76,6 +77,7 @@ Provide customize option
7677
- `async_all`: generate async codes for both server and client
7778
- `async_server`: generate async codes for server
7879
- `async_client`: generate async codes for client
80+
- `gen_mod`: generate mod.rs in out_dir
7981

8082
> See more in `example/build.rs`
8183

0 commit comments

Comments
 (0)