Skip to content

Commit 06e81d2

Browse files
committed
update Readme
Change protoc_rust_ttrpc to ttrpc_codegen in Readme and remove useless. Signed-off-by: Tim Zhang <[email protected]>
1 parent f622312 commit 06e81d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ To generate the sources from proto files:
1313

1414
1. Install protoc from github.com/protocolbuffers/protobuf
1515

16-
2. Install protobuf-codegen from github.com/pingcap/grpc-rs
16+
2. Install protobuf-codegen
1717
```
18-
cd grpc-rs
1918
cargo install --force protobuf-codegen
2019
```
2120

@@ -57,10 +56,10 @@ ttrpc-rust supports async/.await. By using async/.await you can reduce the overh
5756

5857
## Usage
5958
### 1. Generate codes in async version
60-
Currently we only support generating async codes by using protoc_rust_ttrpc
59+
Currently we only support generating async codes by using ttrpc-codegen
6160

6261
```
63-
protoc_rust_ttrpc::Codegen::new()
62+
ttrpc_codegen::Codegen::new()
6463
.out_dir("protocols/asynchronous")
6564
.inputs(&protos)
6665
.include("protocols/protos")

0 commit comments

Comments
 (0)