Closed remoun closed 2 years ago
I have the same problem, how can I solve it temporarily? After MR, it has not been marked as a new crates. Thanks~
Cargo.toml
[dependencies]
thiserror = "1.0"
tokio = { version = "1.21", features = ["full"] }
tokio-stream = { version = "0.1", features = ["net"] }
futures = "0.3"
grpcio = { version = "0.10", default-features = false, features = ["prost-codec"] }
prost = "0.10"
prost-types = "0.10"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
lazy_static = "1.4"
tracing = "0.1"
[build-dependencies]
grpcio-compiler = { version = "0.10", default-features = false, features = ["prost-codec"] }
prost-build = "0.10"
I will release a new version this weekend.
dependency prot=0.9 works fine for me.
[dependencies]
anyhow = { version = "1", default-features = false, features = ["std"] }
thiserror = "1.0"
tokio = { version = "1.21", features = ["full"] }
tokio-stream = { version = "0.1", features = ["net"] }
futures = "0.3"
grpcio = { version = "0.10", default-features = false, features = ["prost-codec"] }
prost = "0.9"
prost-types = "0.9"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
lazy_static = "1.4"
tracing = "0.1"
[build-dependencies]
grpcio-compiler = { version = "0.10", default-features = false, features = ["prost-codec"] }
prost-build = "0.9"
Describe the bug Attempting to use
grpcio 0.10
+grpcio-compiler 0.10
withprost 0.10
fails to build. IIUC it's because ofgrpcio
's dependency onprost 0.9
To Reproduce Steps to reproduce the behavior:
Make a new crate and add the following deps:
.proto
file and a build script that generates Rust code viagrpcio_compiler::prost_codegen::compile_protos
HealthCheckResponse: prost::message::Message
is not satisfied --> .../out/protos-auto-gen/grpc.health.v1.rs:41:17prost::message::Message
is not implemented forHealthCheckResponse
= help: the following other types implement trait
Vec
bool
f32
f64
i32
i64
and 4 others
note: required by a bound in {
| ^^^^^^^ required by this bound in
prost::message::Message
: () Boxpr_de
--> /home/remoun/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-0.10.3/src/codec.rs:94:18 | 94 | pub fn de<M: Message + Default>(mut reader: MessageReader) -> Resultpr_de
So I'm pretty sure it's because of
grpcio
's dependency onprost 0.9