allow turning off tonic_build transport feature for wasm target alone
this would be useful for using tonic with WASM
Is this issue still relevant? Is using tonic while targeting wasm possible today?
I disabled transport feature and implemented in my code no need to rely on tonic_build for it
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tonic = { version = "0.7", features = ["tls", "tls-webpki-roots", "compression"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
tonic = { version = "0.7", default-features = false, features = ["prost", "codegen", "compression"] }
[build-dependencies]
tonic-build = { version = "0.7", default-features = false, features = ["prost", "compression"] }
@borngraced Great that it works for you. I still have the problem, but thanks for the idea. 😀
What's the problem?..be specific please
It's a runtime error (cargo c and cargo build are green using your config values) that I haven't figured out what the cause is. I have tried dioxus and trunk, same results.