jminer / rust-avro Goto Github PK
View Code? Open in Web Editor NEWAn implementation of Avro for Rust.
License: Apache License 2.0
An implementation of Avro for Rust.
License: Apache License 2.0
You should be able to define a type and use in as the type of a record's field, or the type of an array, etc.
enum Seasons {
SPRING, SUMMER, FALL, WINTER
}
record RoughDate {
Seasons season;
int year;
}
I'm not sure yet, but I'm leaning towards removing the lifetime parameter from Protocol
. Lifetime parameter pro/cons:
Pros:
Cons:
Protocol.to_static
method that returns Protocol<'static>
.Basically, the pro is performance and the con is ergonomics. I'm not convinced that IDL file parsing speed matters a lot. Most of Rust's JSON and XML libraries make it hard or impossible to do zero-copy parsing, and I think it matters a lot more for them.
Hello @jminer, We and other people @flavray + @poros + @RyanSkraba are trying to have a consolidated Avro implementation on Rust as part of the Apache Avro project.
For this reason I wanted to contact you because you are the current owner of the avro
crate to see if you would be interested on sharing the crate name with us so we can publish future versions of Apache Avro into using the avro
crate name.
We also contacted @Dandandan who generously accepted to donate to us the avro-tools
name he used in his own project Dandandan/avro-tools-rust so we will be in a perfect situation if you accept to give us the access.
Sorry for coming out of the blue with this request but I expect you see the value for the rust and Avro communities.
Thanks,
Ismaël (current Apache Avro PMC Chair).
I've started working on support for encoding values, with the int64 as a starting point.
The API I'm going with is:
pub fn encode<W: Write>(writer: &mut W, schema: &Schema, value: &Value) -> Result<(), EncodeError>
Is this something you're interested in? I can open a PR if you want.
Parsing errors need to contain the line and column number of the error.
When parsing an IDL file, warn when a protocol/record/field name does not follow convention. There could be a annotation/property that changes what the naming convention should be, say @recordNaming("PascalCase")
or @recordFieldNaming("snake_case")
or @enumSymbolNaming("SCREAMING_SNAKE_CASE")
.
This warning would kind of be a nice usecase for an AST, so that the warning could be emitted after parsing, yet the line number still be reported. But I don't think it is enough reason to add an AST, so I'll just add the warning to the parser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.