Conversation
…(Phase 3+4) Phase 3 - Transport Abstraction Layer: - Add WrpcTransportInfo provider for pluggable transport configuration - Create transport rules: tcp_transport, nats_transport, unix_transport, quic_transport - Each transport has address validation (host:port, nats://, absolute paths) - wrpc_serve rule now accepts transport_config attribute for type-safe configuration - Backward compatible with legacy transport/address string attributes Phase 4 - Multi-Language Binding Support: - Add wrpc_rust_bindings() macro for idiomatic Rust binding generation - Add wrpc_go_bindings() macro for idiomatic Go binding generation - Note: wit-bindgen-wrpc only supports Rust and Go (not Python/JavaScript) - Updated documentation with usage examples Usage examples: tcp_transport(name = "dev_server", address = "localhost:8080") wrpc_serve(name = "serve", component = ":my_comp", transport = ":dev_server") wrpc_rust_bindings(name = "calc_client", wit = ":calc.wit", world = "calc") Closes #332 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Phase 3 (Transport Abstraction Layer) and Phase 4 (Multi-Language Support) of the WRPC modernization effort (#332).
Phase 3 - Transport Abstraction Layer
WrpcTransportInfoprovider for pluggable transport configurationtcp_transport: Direct TCP connections (host:port)nats_transport: NATS.io messaging (nats://host:port)unix_transport: Unix domain sockets (/path/to/socket)quic_transport: QUIC protocol (host:port)wrpc_serveto accepttransportattribute for type-safe configurationPhase 4 - Multi-Language Binding Support
wrpc_rust_bindings()macro for idiomatic Rust binding generationwrpc_go_bindings()macro for idiomatic Go binding generationwit-bindgen-wrpconly supports Rust and Go (not Python/JavaScript)Usage Examples
Test plan
bazel build //wrpc:defs //wrpc:transports //providers:providersCloses #332
🤖 Generated with Claude Code