-
Notifications
You must be signed in to change notification settings - Fork 957
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 from protoc
to quick-protobuf
and remove the buildscripts
#3024
Comments
Havent ran into any issues relating to CI and protoc, but migrating from it to |
Adding another data point. We facilitated a rust-libp2p workshop today. Installing |
I'd really appreciate help on this front @nloadholtes :) |
Just a heads-up that there is now #3050 @nloadholtes. |
protoc
to rust-protobuf
protoc
@kckeiks Thanks a lot for your efforts on this issue! I also have to apologize for not putting my thoughts / intentions into this more clearly. The main thing I/we'd want out of this is to get rid of the As I mentioned on #3066, I'd prefer the code that
There are however also some downsides:
I'd also like to mention that this is what used to be done (#183) and later changed to @tomaka Did you experience any problems back then with the "checking in the generated code" approach that caused you to move away from it? @libp2p/rust-libp2p-maintainers Please voice your opinion on this! |
No, as far as I remember I was in favor of keeping the "checking in the generator code" approach. |
As long as we can make sure the checked-in code is correct, i.e. as long as we have a CI step, I am in favor of checking in the generated code.
Also want to thank you here for your work. Sorry in case it does not end up being merged. |
No worries! I'm glad we did not rush in :) |
protoc
protoc
to quick-protobuf
and remove the buildscripts
Our CI is failing a lot recently due to the |
Hey @thomaseizinger I'm sorry I did not see your message before. Yeah, I would be happy to help out here and expand #3066. Have you started by any chance? I don't want our patches to overlap. I'll start working on this this coming week. |
Nope, I haven't started yet, so feel free to go ahead. Thank you! :) |
Instead of relying on `protoc` and buildscripts, we generate the bindings using `pb-rs` and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use of `rust-libp2p` because we don't force the `protoc` dependency onto them. Resolves #3024. Pull-Request: #3312.
Instead of relying on `protoc` and buildscripts, we generate the bindings using `pb-rs` and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use of `rust-libp2p` because we don't force the `protoc` dependency onto them. Resolves libp2p#3024. Pull-Request: libp2p#3312.
Description
Migrate our codebase from
protoc
toquick-protobuf
.We also want to get rid of the buildscripts and instead check the generated code into Git and add a CI step that verifies that they are directly generated from the protobuf files.
Motivation
Current Implementation
We depend on protoc being installed because prost no longer ships with it.
Are you planning to do it yourself in a pull request?
No.
The text was updated successfully, but these errors were encountered: