Skip to content

Commit

Permalink
Use the raft-proto crate instead of raft
Browse files Browse the repository at this point in the history
We now only depend on crates.io crates, cc pingcap#280

Signed-off-by: Nick Cameron <[email protected]>
  • Loading branch information
nrc committed Jun 18, 2019
1 parent d288a78 commit 6c1fc56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ prost-derive = "0.5"
bytes = "0.4"
futures = "0.1"
grpcio = { version = "0.5.0-alpha.1", features = ["prost-codec"] }
raft = { git = "https://github.com/pingcap/raft-rs.git", rev = "8e953b0d0c9cd2f98c94a42edc48ae3f09e967ff" }
raft-proto = "0.1"
lazy_static = "1.3"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn main() {
}

fn generate_prost_rs(mod_names: &[String]) {
let mut text = "#![allow(dead_code)]\n\npub use raft::eraftpb;\n\n".to_owned();
let mut text = "#![allow(dead_code)]\n\npub use raft_proto::eraftpb;\n\n".to_owned();

for mod_name in mod_names {
text.push_str("pub mod ");
Expand Down
2 changes: 1 addition & 1 deletion src/prost.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c1fc56

Please sign in to comment.