-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tonic 0.12.0 compiles tokio even when no features are enabled #1783
Comments
I encountered this issue as well. AFAICT the problem is this change in the - tokio-stream = "0.1"
+ h2 = {version = "0.4", optional = true}
+ hyper = {version = "1", features = ["full"], optional = true}
+ hyper-util = { version = ">=0.1.4, <0.2", features = ["full"], optional = true }
+ hyper-timeout = {version = "0.5", optional = true}
+ socket2 = { version = ">=0.4.7, <0.6.0", optional = true, features = ["all"] }
+ tokio = {version = "1", default-features = false, optional = true}
+ tokio-stream = { version = "0.1", features = ["net"] }
It would be good to know whether |
Broken until hyperium/tonic#1783 is addressed.
It appears this was already fixed with #1795. On a Patching our dependencies to install from git with the above change included, using (in [patch.crates-io]
tonic = { git = "https://github.com/hyperium/tonic.git", rev = "v0.12.0-12-gaa57ffe" } ...removes the offending tokio/mio dependencies and successfully compiles again. (Ping @tottoto / @djc as an FYI in case this warrants more explicit calling out in future release notes and/or is worthy of an expedited 0.12.1 patch release) |
@zoni thanks for the ping! Doing a release for this probably makes sense. @LucioFranco can you take care of that? Maybe now is a good time to document the release process enough that others can also do it? |
v0.12.1 has been released. |
Bug Report
Version
0.12.0
Platform
WASM
Crates
tonic
Description
Cargo.toml
rust-toolchain.toml
Compiling for WASM with version "0.11.0" works fine
But version 0.12.0 returns error
The text was updated successfully, but these errors were encountered: