Crate protoc

Source
Expand description

§API to invoke protoc command programmatically

API to invoke protoc command using API (e. g. from build.rs).

Note that to generate rust code from .proto, protoc-rust crate can be used, which does not require protoc-gen-rust present in $PATH.

Structs§

ArgsDeprecated
Protoc --lang_out... args
DescriptorSetOutArgs
Protoc --descriptor_set_out... args
Protoc
Protoc command.
ProtocLangOut
protoc --lang_out=... ... command builder and spawner.
Version
Protobuf (protoc) version.

Functions§

runDeprecated
Deprecated version of ProtocLangOut.

Type Aliases§

Error
Alias for io::Error
Result
Alias for io::Error