![]() ![]() I found this originally on another project, but I can reproduce the same thing against the grpc-rs repo. To resolve this, you can tell gRPC-rs to use OpenSSL too by specifying "openssl" in your Cargo.toml's features list for gprcio, which requires openssl (>=1.0.2). This may cause linking issues due to symbol clashes and/or missing symbols when another one of your dependencies uses OpenSSL. GRPC-rs comes vendored with gRPC Core, which by default uses BoringSSL instead of OpenSSL. Though grpcio is completely fine with both features enabled at the same time, grpcio-compiler will not going to work as expected. You probably only want to enable only one of the two features. If you want to use prost instead, you can enable prost-codec feature. When you do not need it, for example when working in intranet, you can disable it by using the following configuration: Secure feature enables support for TLS encryption and some authentication mechanism. To include this project as a dependency: Programmatic generation can be used to generate Rust modules from proto files via your build.rs by using protoc-grpcio.įor more information and examples see README. plugin=protoc-gen-grpc=`which grpc_rust_plugin` example.proto To generate the sources from proto files: Option 1 - Manual Generation If you're getting linker errors when building your project using gRPC-rs, head down to the openssl feature section for a possible fix. scripts/reset-submodule.cmd # if you just cloned the repository For other platforms, bindings are generated at compile time.įor Windows, you also need to install following software:īuild $. ![]() You can also use openssl instead by enabling openssl feature.įor Linux and MacOS, you also need to install gcc 4.9+ (or clang) too.īindings are pre-generated for x86_64/arm64 Linux. By default, the secure feature is provided by boringssl.LLVM and Clang >= 3.9 if you need to generate bindings at compile time.Load balance, client side is fully supported, server side load report is not implemented yet.The following features with the check marks are supported: gRPC is a high performance, open source universal RPC framework that puts mobile and HTTP/2 first. ![]()
0 Comments
Leave a Reply. |