stefandanaita / grpc-build

Easy gRPC compilation for Rust
https://docs.rs/grpc-build
MIT License
17 stars 13 forks source link

add include option #19

Closed cobbinma closed 2 years ago

cobbinma commented 3 years ago

To be able to use this I need to give tonic-build additional include paths.

For example:

grpc_build build -c -s --in-dir="./src" --out-dir="autogen/lang/rust" -f -I/usr/local/include -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway