Skip to content

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