databricks/zerobus-sdk rust/v0.5.0
databricks/zerobus-sdk
Captured source
source ↗published Feb 11, 2026seen Jun 26captured 2whttp 200method plain
Rust SDK v0.5.0
Repository: databricks/zerobus-sdk
Tag: rust/v0.5.0
Published: 2026-02-11T17:25:18Z
Prerelease: no
Release notes:
New Features and Improvements
- Builder Pattern for SDK Initialization: Added
ZerobusSdk::builder()for fluent SDK configuration .endpoint()- Set the Zerobus endpoint (scheme is optional, defaults work with or withouthttps://).unity_catalog_url()- Set the Unity Catalog URL (optional when using custom headers providers).tls_config()- Provide a customTlsConfigimplementation (defaults toSecureTlsConfig)- Configurable TLS via `TlsConfig` trait: TLS is now configured through a strategy pattern
SecureTlsConfig(default) - Production TLS with system CA certificatesNoTlsConfig- No-op TLS for testing with plaintexthttp://endpoints (requirestestingfeature)- Implement
TlsConfigtrait for custom certificate handling - SDK Identifier Header: Renamed
user-agentheader tox-zerobus-sdkfor clearer SDK identification in gRPC metadata - Type Widening for Record Ingestion: Added wrapper types for record ingestion
- `ProtoMessage`: SDK handles encoding - pass any
prost::Messagedirectly - `JsonValue`: SDK handles serialization - pass any
serde::Serializetype directly - `ProtoBytes`: Client handles encoding - explicit wrapper for pre-encoded protobuf bytes
- `JsonString`: Client handles serialization - explicit wrapper for pre-serialized JSON strings
- Backward compatible: existing code using
VecandStringcontinues to work - Works with both single record and batch ingestion methods
Deprecations
- `ZerobusSdk::new()`: Use
ZerobusSdk::builder()instead - `ZerobusSdk.use_tls` field: TLS is now controlled via the
TlsConfigtrait passed to the builder
Bug Fixes
- [Experimental] Record-based acknowledgment tracking for Arrow Flight streams: Added cumulative record counting to support proper ack tracking and correct recovery when batches are auto-chunked.
Documentation
- Reorganized examples directory structure:
json/single,json/batch,proto/single,proto/batch - Added separate README files for JSON and Protocol Buffers examples with comprehensive documentation
- Updated all examples to demonstrate three data-passing approaches: auto-encoding/serializing wrappers, pre-encoded/serialized wrappers, and backward-compatible raw types
Internal Changes
API Changes
- Added `ZerobusSdkBuilder` for fluent SDK configuration (replaces
ZerobusSdk::new()) - Added `TlsConfig` trait with
SecureTlsConfig(default) andNoTlsConfig(behindtestingfeature) - Renamed header from
user-agenttox-zerobus-sdkin gRPC metadata - Added type widening wrapper types (backward compatible):
- Added
ProtoMessage- SDK handles encoding for protobuf messages - Added
JsonValue- SDK handles serialization for JSON objects - Added
ProtoBytes- for pre-encoded protobuf bytes (client handles encoding) - Added
JsonString- for pre-serialized JSON strings (client handles serialization) - All new types implement
Intofor seamless integration - Existing
VecandStringtypes continue to work (backward compatible)