Skip to content

x7c1/aisabi

Repository files navigation

Aisabi Build Status

Project to compare gRPC libraries written in Rust.

Requirements

Install docker and docker-compose first.

Setup

Create a container to build crates:

$ ./scripts/setup-protoc-docker.sh

Build

Build crates on the container:

$ ./scripts/run_tests.sh

Run

Launch a server and run its client with docker-compose.

For tower-grpc:

$ docker-compose up tower_grpc_client
...
tower_grpc_client_1  | RESPONSE = Response { metadata: MetadataMap { headers: {"content-type": "application/grpc+proto", "date": "Sat, 05 Oct 2019 05:05:24 GMT"} }, message: HelloReply { message: "Zomg, it works!" } }
aisabi_tower_grpc_client_1 exited with code 0

For grpc-rs:

$ docker-compose up grpc_rs_client
...
grpc_rs_client_1     | [2019-10-05T05:04:48Z INFO  grpc_rs_client] client started...!
grpc_rs_client_1     | [2019-10-05T05:04:48Z INFO  grpc_rs_client] Greeter received: hello, world!
aisabi_grpc_rs_client_1 exited with code 0

About

Rust samples of gRPC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published