Skip to content

feat(wrpc): add wrpc and wit-bindgen-wrpc to JSON registry (Phase 2)#342

Merged
avrabe merged 2 commits intomainfrom
wrpc-phase2-registry
Feb 7, 2026
Merged

feat(wrpc): add wrpc and wit-bindgen-wrpc to JSON registry (Phase 2)#342
avrabe merged 2 commits intomainfrom
wrpc-phase2-registry

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Feb 7, 2026

Summary

Part of issue #332 WRPC modernization - Phase 2.

  • Add checksums/tools/wrpc.json with v0.16.0 binaries for 3 platforms
  • Add checksums/tools/wit-bindgen-wrpc.json with v0.16.0 for all 5 platforms
  • Add URL patterns for both tools in tool_registry.bzl
  • Update toolchain to download wrpc tools from registry instead of building from source
  • Fix wrpc_bindgen rule to use wit-bindgen-wrpc (binding generator) instead of wrpc-wasmtime (RPC runtime)

Test plan

  • Verified downloads work with bazel clean --expunge && bazel build @wasm_tools_toolchains//:wrpc_binary
  • Verified wit-bindgen-wrpc --version works
  • Verified wrpc --help shows expected commands
  • CI should pass

Notes

wrpc.json is missing linux_arm64 and windows_amd64 checksums - those platforms will use a placeholder binary until checksums are added.

Closes #332 (Phase 2)

🤖 Generated with Claude Code

Part of issue #332 WRPC modernization.

Phase 2 changes:
- Add checksums/tools/wrpc.json with v0.16.0 binaries for 3 platforms
  (darwin_arm64, darwin_amd64, linux_amd64)
- Add checksums/tools/wit-bindgen-wrpc.json with v0.16.0 for all 5 platforms
- Add URL patterns for both tools in tool_registry.bzl
- Add versions for both tools in tool_versions.bzl
- Update wasm_toolchain.bzl to:
  - Include wit_bindgen_wrpc in toolchain info
  - Download both wrpc tools from the registry
  - Update BUILD templates for new binaries
- Update wrpc/defs.bzl wrpc_bindgen rule to use wit-bindgen-wrpc
  (the binding generator) instead of wrpc-wasmtime (the RPC runtime)

The wrpc_bindgen rule now correctly uses wit-bindgen-wrpc for
generating language bindings, while wrpc_serve and wrpc_invoke
continue to use wrpc-wasmtime for runtime operations.

Note: wrpc.json is missing linux_arm64 and windows_amd64 checksums
due to network issues during download - those platforms will use
a placeholder binary until checksums are added.
@avrabe avrabe merged commit 2772bed into main Feb 7, 2026
36 of 38 checks passed
@avrabe avrabe deleted the wrpc-phase2-registry branch February 7, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redesign: Modernize WRPC rules to follow Bazel best practices

1 participant