Skip to content

Commit

Permalink
Generate pb code to OUT_DIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidli2010 committed Jun 15, 2020
1 parent 439946d commit 4cc0911
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.vscode
/target
Cargo.lock
src/rpc/pb/*pb.rs
**/*.rs.bk
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
etcd-client = "0.2"
etcd-client = "0.5"
tokio = { version = "0.2", features = ["full"] }
```

Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ fn main() {

tonic_build::configure()
.build_server(false)
.out_dir("src/rpc/pb")
.compile(
&[
"proto/auth.proto",
Expand Down
21 changes: 21 additions & 0 deletions src/rpc/pb.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//! Etcd gRPC API, auto-generated by prost.
pub mod authpb {
tonic::include_proto!("authpb");
}

pub mod etcdserverpb {
tonic::include_proto!("etcdserverpb");
}

pub mod mvccpb {
tonic::include_proto!("mvccpb");
}

pub mod v3electionpb {
tonic::include_proto!("v3electionpb");
}

pub mod v3lockpb {
tonic::include_proto!("v3lockpb");
}
7 changes: 0 additions & 7 deletions src/rpc/pb/mod.rs

This file was deleted.

0 comments on commit 4cc0911

Please sign in to comment.