From e0926744cfb87983bf9d47cf0068b8147bb9c03c Mon Sep 17 00:00:00 2001 From: jokemanfire Date: Sat, 12 Oct 2024 11:13:54 +0800 Subject: [PATCH] Modify readme Add gen_mod feature in readme Signed-off-by: jokemanfire --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8847aa61..692e2196 100644 --- a/README.md +++ b/README.md @@ -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() }) @@ -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`