stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.38k stars 124 forks source link

Document how to use grpc-compiler #7

Closed vrusinov closed 8 years ago

vrusinov commented 8 years ago

It is not immediately clear how to compile grpc to rust, docs should be updated. I can see some stuff from grpc-examples/gen-rs.sh but it can be documented better.

I may be able to submit pull request once I figure this out (disclaimer: I am noob in Rust).

PS: can this be done via cargo?

stepancheg commented 8 years ago

I may be able to submit pull request once I figure this out

Pull requests, in particular, documentation pull requests are always welcome.

can this be done via cargo?

Done what? You could install protoc plugin from crates onces it uploaded to crates same way it can be done with protobuf.

stepancheg commented 8 years ago

can this be done via cargo?

Ah, you mean generate rust code right from cargo. It can be done, some people did it, but I don't know details. You can find some details there.

vrusinov commented 8 years ago

Ah, you mean generate rust code right from cargo. It can be done, some people did it, but I don't know details. You can find some details there.

Yes, thanks for the pointer. Seems a bit more complicated, so probably not worth the effort describing in readme. Maybe with some more work https://github.com/dwrensha/capnpc-rust it can be feasible.

Anyway, pull request is going your way, and I'm happy to address any comments since my instructions could be too naive.