Skip to content

change(deps): Allow zebra-rpc to be compiled without protoc - #9819

Merged
mergify[bot] merged 9 commits into
mainfrom
rm-protoc-dep
Sep 12, 2025
Merged

change(deps): Allow zebra-rpc to be compiled without protoc#9819
mergify[bot] merged 9 commits into
mainfrom
rm-protoc-dep

Conversation

@arya2

@arya2 arya2 commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

Motivation

This has been requested.

Closes #9817.

Solution

  • Updates zebra-rpc/build.rs to:
    • Copy generated protobuf files into zebra-rpc/proto/__generated__ if protoc is available, or
    • Copy protobuf files from zebra-rpc/proto/__generated__ into output directory otherwise
  • Adds the generated protobuf files into zebra-rpc/proto/__generated__
  • Adds a protobuf consistency check to CI

Tests

Manually tested.

Follow-up Work

Release a new patch version of zebra-rpc

PR Checklist

  • The PR name is suitable for the release notes.
  • The solution is tested.
  • The documentation is up to date.

arya2 added 2 commits August 21, 2025 15:18
…put dir instead of re-compiling them if `protoc` is not available

- Adds proto files to `zebra-rpc/proto/__generated__`
Comment thread .github/workflows/ci-build-crates.yml Fixed
@arya2
arya2 marked this pull request as ready for review August 21, 2025 21:34
@arya2
arya2 requested a review from a team as a code owner August 21, 2025 21:34
@arya2
arya2 removed the request for review from a team August 21, 2025 21:34
@arya2

arya2 commented Aug 26, 2025

Copy link
Copy Markdown
Contributor Author

@Mergifyio update

@mergify

mergify Bot commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

update

✅ Branch has been successfully updated

conradoplg
conradoplg previously approved these changes Aug 28, 2025

@conradoplg conradoplg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just needs conflict solving

Comment thread zebra-rpc/Cargo.toml
Comment thread zebra-rpc/build.rs
conradoplg
conradoplg previously approved these changes Sep 2, 2025

@conradoplg conradoplg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but more conflicts 😅

Comment thread zebra-rpc/proto/__generated__/indexer_descriptor.bin

@oxarbitrage oxarbitrage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement Category: This is an improvement P-High 🔥

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dependency on protoc

5 participants