Skip to content
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

Merged
merged 3 commits into from
Feb 19, 2020
Merged

Conversation

bltavares
Copy link
Member

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

  • tests pass
  • tests and/or benchmarks are included
  • documentation is changed or added

Context

#2

Semver Changes

0.2.0

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
@bltavares bltavares mentioned this pull request Jan 22, 2020
3 tasks
}
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)> {
Copy link
Collaborator

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.

Copy link
Member Author

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

Copy link
Collaborator

@yoshuawuyts yoshuawuyts left a 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 (:

@bltavares
Copy link
Member Author

I don't have access here, and I'm not sure how to publish crates either, but I could learn :)

@yoshuawuyts
Copy link
Collaborator

@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 🎉

@bltavares bltavares merged commit 965338a into datrs:master Feb 19, 2020
@bltavares bltavares deleted the bump branch February 19, 2020 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

replace with quick-protobuf
2 participants