diff --git a/Cargo.toml b/Cargo.toml index cc62ca61a..0b3208279 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/build.rs b/build.rs index fd009b3b6..a91b0af5a 100644 --- a/build.rs +++ b/build.rs @@ -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 "); diff --git a/src/prost.rs b/src/prost.rs index 1e12c0341..5be47b5ac 100644 --- a/src/prost.rs +++ b/src/prost.rs @@ -1,6 +1,6 @@ #![allow(dead_code)] -pub use raft::eraftpb; +pub use raft_proto::eraftpb; pub mod coprocessor{ include!("prost/coprocessor.rs");include!("prost/wrapper_coprocessor.rs");}