[Rust][FFI] Add Avro C ABI (avro feature) - #830
Draft
irinatomic-db wants to merge 2 commits into
Draft
Conversation
This was referenced Sep 3, 2026
irinatomic-db
force-pushed
the
irina-tomic_data/avro/ffi-c-abi
branch
from
September 3, 2026 16:55
ecc02a8 to
8fbb412
Compare
This was referenced Sep 3, 2026
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.
PR stack
What changes are proposed in this pull request?
Exposes the Rust SDK's Avro support across the C FFI, behind the off-by-default
avrofeature (Beta). Additive only — existing C signatures andCStreamConfigurationOptionsare byte-for-byte unchanged, so Go/C++/.NET keep building against the current ABI.ffi/Cargo.toml: newavrofeature forwarding todatabricks-zerobus-ingest-sdk/avro.ffi/cbindgen.toml:[defines] "feature = avro" = "ZEROBUS_AVRO", so the avro declarations are emitted inzerobus.hunder#if defined(ZEROBUS_AVRO). The header is identical with or without the feature (freshness check stays green).ffi/src/stream.rs:zerobus_sdk_create_avro_stream(+_async/_with_headers_provider_with_headers_provider_async), takingavro_schema_jsonas a null-terminated C string in the descriptor slot.zerobus_stream_ingest_avro_record[s](+_async/_nowait), buildingEncodedRecord::Avro(raw pre-encoded datums, mirroring the proto path).build_stream_from_partsgained anavro_schema_jsonparam (forcesRecordType::Avro→.avro(schema)); theEncodedRecord→C-array match gained a gated Avro arm.ffi/zerobus.h(avro surface under#if defined(ZEROBUS_AVRO)).ffi/NEXT_CHANGELOG.mdentry;ci-rust.ymlgains an--features avrobuild/test step.Consumers build the FFI with
--features avroand compile with-DZEROBUS_AVRO. Ephemeral streams only; server support is pending.Once the avro gate is removed the new CI job will be removed as well.
How is this tested?