avro-rs 0.13.0

Library for working with Apache Avro in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, serde::Serialize)]
struct Test {
    a: i64,
    b: &'static str,
}

fn main() -> anyhow::Result<()> {
    let test = Test { a: 27, b: "foo" };
    let value = avro_rs::to_value(test)?;
    println!("{:?}", value);
    Ok(())
}