Registry / serialization / apache-avro

apache-avro

JSON →
library0.21.0rscratesunverified

A library for working with Apache Avro in Rust.

# Cargo.toml [dependencies] apache-avro = "0.21.0"
INSTALL
IMPORT
SIG · APACHE-AVRO
A
apache-avro
serializationrustv0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Reader
use apache_avro::Reader;

Create an Avro reader with a schema.

use apache_avro::Reader; use apache_avro::types::Value; fn main() { let schema = r#"{"type": "record", "name": "test", "fields": [{"name": "x", "type": "int"}]}"#; let reader = Reader::new(&schema).unwrap(); println!("Avro reader created"); }
Debug
Known issues
gotchaSchema validation errors can occur if schema is malformed.
fix
Ensure schema is valid JSON and matches Avro specification.
affects: >=0.21.0
Upgrade
Version history
0.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
1
Resources
apache-avro — cargo add apache-avro · libregistry