Skip to content

Commit

Permalink
Modify readme
Browse files Browse the repository at this point in the history
Add gen_mod feature in readme

Signed-off-by: jokemanfire <[email protected]>
  • Loading branch information
jokemanfire committed Oct 12, 2024
1 parent 0210c7a commit e092674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Currently we only support generating async codes by using ttrpc-codegen
.include("protocols/protos")
.rust_protobuf()
.customize(Customize {
gen_mod: true, // Gen mod will add mod.rs in out_dir.It's compatible with protobuf's gen_mod_rs
async_all: true, // It's the key option.
..Default::default()
})
Expand All @@ -76,6 +77,7 @@ Provide customize option
- `async_all`: generate async codes for both server and client
- `async_server`: generate async codes for server
- `async_client`: generate async codes for client
- `gen_mod`: generate mod.rs in out_dir

> See more in `example/build.rs`
Expand Down

0 comments on commit e092674

Please sign in to comment.