Expand description
A rust implementation of the protobuf compiler.
For convenient compilation of protobuf source files in a single function, see
compile(). For more options see Compiler.
Examples
Usage with prost-build:
let file_descriptors = protox::compile(["root.proto"], ["."]).unwrap();
prost_build::compile_fds(file_descriptors).unwrap();For better error messages, enable the fancy feature of miette and return a
miette::Result from your main() function.
Modules
- Interfaces for customizing resolution of protobuf source files.
Structs
- Options for compiling protobuf files.
- An error that can occur when compiling protobuf files.
Functions
- Compiles a set of protobuf files using the given include paths.