titanous/grpc-web-client

Build fails when requiring TLS

Closed this issue · 1 comments

Hello, I have been using your crate (:pray: ) to implement a grpc client and compiling it to wasm.
All works fine with http, but to use https I need to enable tls and tls-roots features on tonic,
but once I do that the build targeting wasm fails.

Here the build logs and the relevant Cargo.toml section:
https://gist.github.com/noandrea/ce571ece948e309c54c4ce5958c3c3c2

the src project is here https://github.com/noandrea/cosmos-cash-credentials/tree/feat/grpc

do you know if it is a way around this?

nevermind, for browsers it is not necessary to have tls (of course! 🤦 )