Crates.io | ekiden-grpcio |
lib.rs | ekiden-grpcio |
version | 0.3.2 |
source | src |
created_at | 2018-07-13 22:43:16.997421 |
updated_at | 2018-07-14 00:15:44.558395 |
description | The rust language implementation of gRPC, base on the gRPC c core library. |
homepage | https://github.com/pingcap/grpc-rs |
repository | https://github.com/pingcap/grpc-rs |
max_upload_size | |
id | 74125 |
size | 213,220 |
gRPC-rs
is a Rust wrapper of gRPC Core. gRPC is a high performance, open source universal RPC framework that puts mobile and HTTP/2 first.
This project is still under development. The following features with the check marks are supported:
For Linux and MacOS, you also need to install gcc (or clang) too.
For Windows, you also need to install following software:
$ cargo build
To generate the sources from proto files:
$ cargo install protobuf-codegen
$ cargo install grpcio-compiler
$ protoc --rust_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_rust_plugin` example.proto
Programmatic generation can be used to generate Rust modules from proto files
via your build.rs
by using protoc-grpcio.
For more information and examples see README.
To include this project as a dependency:
[dependencies]
grpcio = "0.3"
secure
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:
[dependencies]
grpcio = { version = "0.3", default-features = false, features = ["protobuf-codec"] }
See benchmark to find out how to run a benchmark by yourself.