tikv / grpc-rs

The gRPC library for Rust built on C Core library and futures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove dependency on boringssl-src if secure is not activated

hug-dev opened this issue Β· comments

Hello πŸ‘‹

In the README, it is written:

secure feature enables support for TLS encryption and some authentication mechanism. When you do not need it, for example when working in intranet, you can disable it by using the following configuration

However, even if it is disabled, boringssl-src will be included in the dependencies via grpcio-sys (see here).

Removing the need of compiling boringssl-src when the secure feature is disabled will make compilation faster and also easier for cross-compilation targets πŸ‘

I am happy to have a go at it and try to modify the build.rs file to something that'd work.

commented

Sure, feel free to send us your patch when ready!