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

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

#5 in #tonic

MIT/Apache

23KB
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

~15MB
~272K SLoC