Registry / networking / tonic-web

tonic-web

JSON →
library0.14.6rscratesunverified

gRPC-Web protocol translation for tonic services.

# Cargo.toml [dependencies] tonic-web = "0.14.6"
INSTALL
IMPORT
SIG · TONIC-WEB
T
tonic-web
networkingrustv0.14.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GrpcWebLayer
use tonic_web::GrpcWebLayer;

Creates a gRPC-Web layer to wrap a tonic service for browser compatibility.

use tonic_web::GrpcWebLayer; use tonic::transport::Server; fn main() { // Example: wrap a tonic service with gRPC-Web support let layer = GrpcWebLayer::new(); println!("gRPC-Web layer created"); }
Debug
Known issues
gotchaRequires tonic and tower features enabled
fix
Add `features = ["web"]` to tonic dependency in Cargo.toml
affects: >=0.14.0
Upgrade
Version history
0.14.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
tonic-web — cargo add tonic-web · libregistry