Skip to content
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

Merged
merged 2 commits into from
Jun 26, 2019
Merged

Conversation

nrc
Copy link
Contributor

@nrc nrc commented Jun 18, 2019

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

Cargo.toml Outdated Show resolved Hide resolved
nrc added 2 commits June 20, 2019 14:16
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"
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By following raft-rs?

Copy link
Contributor Author

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).

Copy link
Contributor

@BusyJay BusyJay left a 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.

@nrc nrc merged commit 4614b96 into pingcap:master Jun 26, 2019
@nrc
Copy link
Contributor Author

nrc commented Jun 26, 2019

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?

@Hoverbear
Copy link
Contributor

@nrc Please, go ahead :)

sticnarf pushed a commit to sticnarf/kvproto that referenced this pull request Oct 27, 2019
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants