Kriskras99 commented on issue #310:
URL: https://github.com/apache/avro-rs/issues/310#issuecomment-3386153464
We are currently working on adding async support. Part of that work should
make this easier.
In the meantime this is a workaround:
```rust
struct NoHeader;
impl HeaderBuilder for NoHeader {
fn build_header(&self) -> Vec<u8> {
Vec::new()
}
}
let mut decoder = GenericSingleObjectReader::new_with_header_builder(schema,
NoHeader);
loop {
let value = decoder.read_value(reader)?;
println!("{value:?}")
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]