-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depend on raft-proto crate instead of raft #411
Conversation
We now only depend on crates.io crates, cc pingcap#280 Signed-off-by: Nick Cameron <[email protected]>
Fixes a bunch of warnings Signed-off-by: Nick Cameron <[email protected]>
@@ -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.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the versioning strategy you expect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By following raft-rs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, matching with Raft. (Although if we do something different, it doesn't matter much).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really wish we can put the generated code inside OUT directory so it doesn't have to be included in version control. No one takes much care about it.
I'd be happy to have that setup. Do you know why we build into src at the moment? |
@nrc Please, go ahead :) |
* 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]> * Update protobuf-build Fixes a bunch of warnings Signed-off-by: Nick Cameron <[email protected]>
Means we don't need a Git dependency and can publish KvProto on crates.io (#280).
Also re-generates the Prost code to avoid hundreds of warnings.
PTAL @Hoverbear @BusyJay