-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate codegen to pure-rust generator #8
Conversation
This commit replaces the build.rs dev dependency to generate protobuf files using a pure-rust implementation, removing the requirement to have `protoc` installed and making it easier to contribute. This commit also bumps the lib protobuf lib to the latest version, and pin it to a specific dependency, as required by the constant it generates. Due to requiring a specific protobuf version, a new minor version has been bumped. Tentatively fix datrs#2
} | ||
fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> { | ||
fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run cargo fmt
on the files? With edition=2018
the ::prefix
on paths should have been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't run anything, just the generation steps from the lib. I could take a look on that later on and try to fix the CI as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise!
Do you have merge / publish access? Can provide if you don't already (:
I don't have access here, and I'm not sure how to publish crates either, but I could learn :) |
@bltavares I've given you access to both! If you log into crates.io you're now part of the team for https://crates.io/crates/dat-network-protocol 🎉 |
This commit replaces the build.rs dev dependency to generate protobuf
files using a pure-rust implementation, removing the requirement to have
protoc
installed and making it easier to contribute.This commit also bumps the lib protobuf lib to the latest version, and pin it
to a specific dependency, as required by the constant it generates. Due
to requiring a specific protobuf version, a new minor version has been
bumped.
Tentatively fix #2
Choose one: a 🙋 feature
Checklist
Context
#2
Semver Changes
0.2.0