Skip to content

Commit c8efe8a

Browse files
committed
Use the raft-proto crate instead of raft
We now only depend on crates.io crates, cc pingcap#280 Signed-off-by: Nick Cameron <[email protected]>
1 parent a4759df commit c8efe8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ prost-derive = "0.5"
1919
bytes = "0.4"
2020
futures = "0.1"
2121
grpcio = { version = "0.5.0-alpha.1", features = ["prost-codec"] }
22-
raft = { git = "https://github.com/pingcap/raft-rs.git", rev = "8e953b0d0c9cd2f98c94a42edc48ae3f09e967ff" }
22+
raft-proto = "0.1"
2323
lazy_static = "1.3"
2424

2525
[build-dependencies]

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn main() {
6666
}
6767

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

7171
for mod_name in mod_names {
7272
text.push_str("pub mod ");

src/prost.rs

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)