#grpc #tonic #wasm-bindgen #grpc-client #js #wasm

grpc-web-client

An implementation of the gRPC-Web protocol that allows using tonic in browsers via wasm

3 releases

0.1.2 May 7, 2021
0.1.1 May 5, 2021
0.1.0 May 5, 2021

#70 in #grpc-client

MIT/Apache

25KB
521 lines

grpc-web-client

Crates.io Documentation License

A Rust implementation of the gRPC-Web protocol that allows using tonic in browsers via wasm.

Testing

Running the tests requires wasm-pack.

To run the tests, first start the server:

RUST_LOG=info cargo run -p test-server

Then, after the server is built and running, the tests can be run.

wasm-pack test --firefox --chrome --safari --headless test/test-client

Acknowledgments

This package is heavily based on webtonic.

Dependencies

~14–22MB
~324K SLoC