You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As seen previously in #222, proto path options may be specified from a different relative location, e.g., workspace root, while the build process is done from the working directory of the Rust package.
Adding a current_dir option to prost_build::Config will make it easier to easier to compile Rust protos where the proto files are in a source tree separate from the rust code without needing to specify a relative path from the rust package dir to the protos dir, for example in a repo like:
As seen previously in #222, proto path options may be specified from a different relative location, e.g., workspace root, while the build process is done from the working directory of the Rust package.
Adding a
current_dir
option toprost_build::Config
will make it easier to easier to compile Rust protos where the proto files are in a source tree separate from the rust code without needing to specify a relative path from the rust package dir to the protos dir, for example in a repo like:where the
build.rs
, and its dependencies, gets protobuf information fromprotos.json
that may look like:It is awkward to specify that the include dir in the example would need to be
../../protos
just for Rust.The text was updated successfully, but these errors were encountered: