Skip to content

Commit

Permalink
Merge pull request #260 from jokemanfire/dev4
Browse files Browse the repository at this point in the history
Modify readme
  • Loading branch information
Tim-Zhang authored Nov 4, 2024
2 parents 0210c7a + e092674 commit a958466
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 a958466

Please sign in to comment.