
Zero-copy protobuf and ConnectRPC for Rust
As part of my work at Anthropic, I open sourced two Rust crates that fill a gap in the RPC ecosystem: buffa , a pure-Rust Protocol Buffers implementation with first-class editions support and zero-copy message views, and connect-rust , a Tower-based ConnectRPC implementation that speaks Connect, gRPC, and gRPC-Web on the same handlers. We're nominating connect-rust as the canonical Rust implementation of ConnectRPC — if you're using Connect from Go, TypeScript, or Kotlin, this is intended to be the peer implementation for Rust. This code is already in production at Anthropic. Both crates pass their full upstream conformance suites — Google's protobuf binary and JSON conformance for buffa, and all ~12,800 ConnectRPC server, client, and TLS tests for connect-rust — though as I'll cover later, a green conformance run turned out to be necessary but far from sufficient for production. They were built in six weeks with Claude Opus 4.6 doing most of the work under my direction — an experiment
Continue reading on Dev.to
Opens in a new tab




