tokio-rs / prost

PROST! a Protocol Buffers implementation for the Rust Language
Apache License 2.0
3.87k stars 501 forks source link

feat(prost-build): Add protoc executable path to Config #1126

Closed caspermeijn closed 1 month ago

caspermeijn commented 1 month ago

Set the path to protoc executable to be used by prost-build

Use the provided path to find protoc. This can either be a file name which is searched for in the PATH or an aboslute path to use a specific executable.

This API is needed during prost development to use the repo compiled protoc on the .proto-files in the same repo: https://github.com/caspermeijn/prost/commit/1e4f390d699cbd7b36fcdd3a53dc63a2e2debbc6