Skip to content

Commit 4cc0911

Browse files
committed
Generate pb code to OUT_DIR.
1 parent 439946d commit 4cc0911

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
.vscode
33
/target
44
Cargo.lock
5-
src/rpc/pb/*pb.rs
65
**/*.rs.bk

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add this to your `Cargo.toml`:
3030

3131
```toml
3232
[dependencies]
33-
etcd-client = "0.2"
33+
etcd-client = "0.5"
3434
tokio = { version = "0.2", features = ["full"] }
3535
```
3636

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ fn main() {
44

55
tonic_build::configure()
66
.build_server(false)
7-
.out_dir("src/rpc/pb")
87
.compile(
98
&[
109
"proto/auth.proto",

src/rpc/pb.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//! Etcd gRPC API, auto-generated by prost.
2+
3+
pub mod authpb {
4+
tonic::include_proto!("authpb");
5+
}
6+
7+
pub mod etcdserverpb {
8+
tonic::include_proto!("etcdserverpb");
9+
}
10+
11+
pub mod mvccpb {
12+
tonic::include_proto!("mvccpb");
13+
}
14+
15+
pub mod v3electionpb {
16+
tonic::include_proto!("v3electionpb");
17+
}
18+
19+
pub mod v3lockpb {
20+
tonic::include_proto!("v3lockpb");
21+
}

src/rpc/pb/mod.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)