Skip to content

*: 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

Merged
merged 3 commits into from
Jul 24, 2019
Merged

*: fix builds #351

merged 3 commits into from
Jul 24, 2019

Conversation

BusyJay
Copy link
Member

@BusyJay BusyJay commented Jul 24, 2019

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.

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.
nrc
nrc previously approved these changes Jul 24, 2019
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 }
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right.

@@ -0,0 +1 @@

Copy link
Member

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?

@overvenus
Copy link
Member

Should we run tests with the prost-codec?

@BusyJay
Copy link
Member Author

BusyJay commented Jul 24, 2019

No, due to the difference mechanism between packages and modules, there are still things to do to support run tests against it.

@hunterlxt
Copy link
Member

seems that CI in Win platform met some errors. We may ignore it ?

@BusyJay
Copy link
Member Author

BusyJay commented Jul 24, 2019

It seems tortall is down. If all the other CI passes, I think we can merge it.

@BusyJay BusyJay merged commit f0a26b5 into master Jul 24, 2019
@BusyJay BusyJay deleted the fix-build branch July 24, 2019 07:28
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