Skip to content

Commit

Permalink
Upgrade protobuf to 1.6. (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
hicqu authored May 18, 2018
1 parent 444e99e commit 63570e6
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 462 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ categories = ["algorithms", "database-implementations"]

[dependencies]
log = "0.4.1"
# TODO: support 1.6
protobuf = "<1.6"
protobuf = "1.6"
quick-error = "1.2.1"
rand = "0.4"
fxhash = "0.2.1"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ You may optionally want to install `cargo-check` to allow for automated rebuildi
cargo watch -s "cargo check --features dev"
```

If proto file `eraftpb.proto` changed, run the command to regenerate `eraftpb.rs`:

```bash
protoc proto/eraftpb.proto --rust_out=src
```

You can check `Cargo.toml` to find which version of `protobuf-codegen` is required.

## Acknowledgments

Thanks [etcd](https://github.com/coreos/etcd) for providing the amazing Go implementation!
Expand Down
Loading

0 comments on commit 63570e6

Please sign in to comment.