[][src]Crate protobuf_build

Utility functions for generating Rust code from protobuf specifications.

These functions panic liberally, they are designed to be used from build scripts, not in production.

Structs

GenOpt

Functions

check_protoc_version

Check that the user's installed version of the protobuf compiler is 3.1.x.

generate_prost_files

Use Prost to generate Rust files from proto files (file_names).

generate_protobuf_files

Use protobuf-rs to generate Rust files from proto files (file_names).

generate_wrappers
module_names_for_dir

Returns a list of module names corresponding to the Rust files in a directory.

replace_read_unknown_fields

Convert protobuf files to use the old way of reading protobuf enums.

rustfmt