id_effect_rpc
RPC client/server stack and HTTP boundary helpers for id_effect — @effect/rpc parity (Phase D).
Full stack (D3)
| Module | Role |
|---|---|
protocol |
Tagged wire request/response (POST /rpc) |
serialization |
JSON + [id_effect::schema] encode/decode |
registry |
[RpcGroup] — register typed handlers |
server |
[RpcServer] — Axum dispatch route |
client |
[RpcClient] — remote calls via [HttpClientKey] |
stream |
NDJSON stream chunk encoding |
Edge helpers (D2)
RpcError/RpcEnvelope— JSON errors + AxumIntoResponsecorrelation—x-correlation-idspan—rpc.requesttracing fieldsversioning— API version negotiation middlewareopenapi/codegen— OpenAPI 3 emission + trait stub strings
Quick start
use Arc;
use ;
use ;
let mut group = new;
group.register;
let app = new.mount_default.with_state;
Wire format:
Examples
Phase D status
- D1–D2: patterns, mdBook, edge helpers — shipped
- D3: tagged dispatch,
RpcGroup,RpcClient, schema bridging — shipped (HTTP+JSON) - Backlog: proc-macro codegen, gRPC/tonic protocol layers, bidirectional streaming
See docs/effect-ts-parity/phases/phase-d-rpc.md.