| Crates.io | avrotize |
| lib.rs | avrotize |
| version | 0.1.1 |
| created_at | 2025-09-05 14:58:33.90066+00 |
| updated_at | 2025-09-10 13:36:53.385252+00 |
| description | Convert JSON Schema to Avro with Rust |
| homepage | https://github.com/lmmx/avrotize-rs |
| repository | https://github.com/lmmx/avrotize-rs |
| max_upload_size | |
| id | 1825663 |
| size | 421,301 |
Rust port of avrotize, a tool to convert JSON Schema into Apache Avro schemas.
avrotize-rs is a high-performance converter that reads JSON Schema documents and produces equivalent Avro schema files.
It aims to be feature-complete with the original Python avrotize, while leveraging Rust’s speed, memory safety, and ecosystem.
Supported features include:
recordarray$defs and $ref resolutionenum) and constants (const)doc fieldsadditionalProperties)oneOf, anyOf, allOf)Convert a JSON Schema file to Avro:
cargo run -F cli
Usage: jsonschema2avro <JSONSCHEMA> <AVRO>
Fixtures live under tests/fixtures/jsonschema/.
For each fixture, an Avro schema is generated into tests/fixtures/avro/ and compared against a snapshot in tests/snapshots/.
$ref resolution