Skip to content
Discussion options

You must be logged in to vote

Yes, and I verified it end to end against a non-Rust backend before writing this. tonic-web does not ship a standalone proxy binary, but its translation layer is fully decoupled from tonic services, so about sixty lines of glue turn it into exactly the drop-in you describe, as an embeddable Rust library rather than a process you shell out to, which addresses both your MSVC and Android constraints.

The decoupling is visible in the trait bounds. In tonic-web/src/service.rs (v0.14.6, lines 70-76):

impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for GrpcWebService<S>
where
    S: Service<Request<Body>, Response = Response<ResBody>>,
    ReqBody: http_body::Body<Data = bytes::Bytes> + Send + 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@George-Madeley
Comment options

Answer selected by George-Madeley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants