Closed felberj closed 6 years ago
Just ran into this problem myself also. The code worked a few days ago but it looks like in the last few days there were a few updates to a couple of related libraries and latest grpc-compiler
crate does indeed not build. If one syncs down this repo and builds latest in grpc-compiler
directory it works though because it then uses protobuf 1.5.1 instead of the latest 1.6.0.
I've filed a PR (https://github.com/stepancheg/grpc-rust/pull/119) that should fix this
I have updated the readme, and updated grpc to force protobuf 1.5; published version 0.3.1.
Sorry!
Thanks that solved it!
@stepancheg can we expect a 0.4 branch that uses protobuf 1.6? Or what would be the recommended way to use 1.6 right now?
Thanks
I plan to upgrade grpc to newer protobuf soon and release a new branch.
Hope it will be as easy as PR #119.
However, note that one of the important features of rust-protobuf 1.6 is pure-rust codegen (without dependency on protoc
command). To make grpc-compiler available without dependency on protoc, it may require some work. So pure-rust codegen for grpc won't be available soon.
Thanks for the quick reply, eagerly awaiting 1.6 with public oneof enum generation 😃
Published version 0.4.0
rustc: 1.26.0 (a77568041 2018-05-07) OS: macOS high sierra
I can also reproduce this with the
rust:1.26
docker container: