diff --git a/BUILD.bazel b/BUILD.bazel index 2e3a0953..ae5258db 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -10,21 +10,15 @@ rust_library_group( ], ) -rust_library_group( - name = "tonic_runtime", - deps = [ - ":prost_runtime", - "@crates//:tonic", - ], -) - +# starpls uses prost messages only. No tonic: a tonic runtime pulls in +# networking crates (socket2) that do not build for WebAssembly. rust_prost_toolchain( name = "prost_toolchain_impl", prost_plugin = "@crates//:protoc-gen-prost__protoc-gen-prost", prost_runtime = ":prost_runtime", prost_types = "@crates//:prost-types", - tonic_plugin = "@crates//:protoc-gen-tonic__protoc-gen-tonic", - tonic_runtime = ":tonic_runtime", + # The flag has a non-empty default; clear it so the rule sees no tonic at all. + tonic_plugin_flag = "", ) toolchain(