-
Notifications
You must be signed in to change notification settings - Fork 526
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
How to compile protos using protoc directly #330
Comments
|
why the newer versions did not include plugin? or why was it removed |
If it helps, I made a quick Rust cli tool to compile my protobufs. It does not use fn main() {
let messages_dir = std::env::var("MESSAGES_DIR").expect("MESSAGES_DIR env var not set");
// OUT_DIR env var also required and is handled by prost.
prost_build::compile_protos(&["my.proto"], &[&messages_dir]).unwrap();
} |
It was removed because no one was using it at the time, and I didn't want to continue supporting it. The way
|
But it does use the I think a good usecase for the protoc plugin is to be compatible with grpc tooling, in-house tooling or for example buf/build |
I know that this is a long old issue, but as mentioned, |
As of now support for anything major in prost will not likely happen inside the prost crate but might come as support externally #492 (comment) |
Is there a way to compile .proto files using prost as a protoc plugin directly (eg, by calling
protoc ...
directly), without compiling via a build.rs? Ive been looking through the documentation but cant find any examples.I've been looking through the source but didnt see any suitable binary targets that might be used with protoc
The text was updated successfully, but these errors were encountered: