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

Enable to use newer protobuf #415

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

dskkato
Copy link
Contributor

@dskkato dskkato commented Sep 12, 2023

  • remove protobuf version restriction
  • fix CI

Closes #414

@dskkato
Copy link
Contributor Author

dskkato commented Sep 12, 2023

@adamcrume Could you check this PR if you have time?

@adamcrume
Copy link
Contributor

The problem is that the generated code (which is checked in) is only compatible with the exact same version of protobuf that generated it. This is a very annoying property of the protobuf crate, but I can't change that.

We could switch to generating the code in a build script, which means that we need the proto files available at build time. We could do that by adding TensorFlow as a git submodule, but it's huge (hundreds of megabytes), and apparently cargo doesn't work well with submodules (rust-lang/cargo#7987). Possibly a better way is to just manually (with a script) copy the protos from TensorFlow into this crate for each version upgrade.

@dskkato
Copy link
Contributor Author

dskkato commented Sep 17, 2023

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.

Incompatible with projects using protobuf 2.28
2 participants