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

cipherstash-grpc-web-client

实现 gRPC-Web 协议,允许通过 wasm 在浏览器中使用 tonic。

1 个不稳定版本

0.1.2 2022 年 8 月 18 日

#48#grpc-client


3 个crate中使用 (直接使用 2 个)

MIT/Apache

28KB
590

grpc-web-client

Crates.io Documentation License

一个 Rust 实现的 gRPC-Web 协议,允许通过 wasm 在浏览器中使用 tonic

测试

运行测试需要 wasm-pack

要运行测试,首先启动服务器

RUST_LOG=info cargo run -p test-server

然后,在服务器构建并运行后,可以运行测试。

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

致谢

此包主要基于 webtonic

依赖项

~13–17MB
~312K SLoC