Struct protoc::ProtocLangOut
source · [−]pub struct ProtocLangOut { /* private fields */ }
Expand description
protoc --lang_out=... ...
command builder and spawner.
Examples
use protoc::ProtocLangOut;
ProtocLangOut::new()
.lang("go")
.include("protos")
.include("more-protos")
.out_dir("generated-protos")
.run()
.unwrap();
Implementations
Set --plugin
param. Not needed if plugin is in $PATH
Append multiple paths to -I
args
Append a .proto
file path to compile
Append multiple .proto
file paths to compile
Trait Implementations
Returns the “default value” for a type. Read more