Skip to content

Conversation

@dvdsk
Copy link

@dvdsk dvdsk commented Sep 15, 2025

Uses protobuf-src to build statically linked protoc from scratch. This removes the requirement to have protoc installed (which quickly gets annoying when building for N different platforms).

To decode a model into ModelProto you need to have the prost::Message trait in scope. If you depend on a different version of prost then candle decoding will fail. By re-exporting prost users can depend directly on our version.

To decode a model into ModelProto you need to have the prost::Message
trait in scope. If you depend on a different version of prost then
candle decoding will fail. By re-exporting prost users can depend
directly on our version.
@dvdsk dvdsk changed the title re-export prost::Message eliminate build dependency on installed protoc, re-export prost::Message Sep 16, 2025
@dvdsk
Copy link
Author

dvdsk commented Sep 16, 2025

Unfortunately this does not work on all platforms (breaking on mac & windows). How do you all feel about shipping pre-'compiled' protocol buffers? That should help compile time & get rid of the dependency on protoc?

@ivarflakstad
Copy link
Member

Unfortunately this does not work on all platforms (breaking on mac & windows). How do you all feel about shipping pre-'compiled' protocol buffers? That should help compile time & get rid of the dependency on protoc?

Not opposed at all actually. With the change I'd like a github action that ensures correctness though :)

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.

2 participants