-
Notifications
You must be signed in to change notification settings - Fork 257
*: fix builds #351
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
*: fix builds #351
Conversation
This PR breaks the circle dependencies between grpcio and grpcio-proto by adding a new crate named tests and examples. We can bring things back once rust-lang/cargo#6915 is fixed. The new structure also fixes a problem that crates.io denies to accept circle dependencies in dev-dependencies. More see rust-lang/cargo#4242. This PR also updates protobuf-build to the latest version.
proto/Cargo.toml
Outdated
@@ -27,9 +27,10 @@ protobuf = "2" | |||
lazy_static = { version = "1.3", optional = true } | |||
|
|||
[build-dependencies] | |||
protobuf-build = "0.7" | |||
protobuf-build = { version = "0.8", default-features = false } | |||
grpcio-compiler = { path = "../compiler", version = "0.5.0-alpha.2", default-features = false } | |||
prost = { version = "0.5", optional = true } | |||
prost-types = { version = "0.5", optional = true } | |||
protobuf = { version = "2", optional = true } |
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 think all these optional build deps can be removed
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.
You are right.
tests-and-examples/src/lib.rs
Outdated
@@ -0,0 +1 @@ | |||
|
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.
Could you leave a comment about the purpose of the empty file?
Should we run tests with the |
No, due to the difference mechanism between packages and modules, there are still things to do to support run tests against it. |
seems that CI in Win platform met some errors. We may ignore it ? |
It seems tortall is down. If all the other CI passes, I think we can merge it. |
This PR breaks the circle dependencies between grpcio and grpcio-proto
by adding a new crate named tests and examples. We can bring things back
once rust-lang/cargo#6915 is fixed.
The new structure also fixes a problem that crates.io denies to accept
circle dependencies in dev-dependencies. More see rust-lang/cargo#4242.
This PR also updates protobuf-build to the latest version.