File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# A compiler of ttrpc-rust
2
2
3
- generate rust version ttrpc codes from proto files.
3
+ generate rust version ttrpc code from proto files.
4
4
5
5
## Usage
6
6
Original file line number Diff line number Diff line change 14
14
//!
15
15
//! A compiler of ttrpc-rust.
16
16
//!
17
- //! *generate rust version ttrpc codes from proto files.*
17
+ //! *generate rust version ttrpc code from proto files.*
18
18
//!
19
19
//!
20
20
//! Usage
@@ -27,9 +27,13 @@ pub mod codegen;
27
27
pub mod prost_codegen;
28
28
mod util;
29
29
30
+ /// Customize generated code.
30
31
#[ derive( Default , Debug , Clone ) ]
31
32
pub struct Customize {
33
+ /// Indicates whether to generate async code for both server and client.
32
34
pub async_all : bool ,
35
+ /// Indicates whether to generate async code for client.
33
36
pub async_client : bool ,
37
+ /// Indicates whether to generate async code for server.
34
38
pub async_server : bool ,
35
39
}
You can’t perform that action at this time.
0 commit comments