Crate proto_build_tools

source ยท
Expand description

Contains utilities to build protos & make them available to Rust.

Functionsยง

  • Builds a set of Rust protos based on the provided proto files. The individual protos will be dumped into out_dir (will be created if needed), along with a file that wraps them out_dir/generated.rs. The wrapper file can then be included using a pattern like:
  • Allows for more control than build_protos (useful when the proto build is more complex).
  • create_gen_file ๐Ÿ”’
  • gen_protos ๐Ÿ”’
  • to_includes ๐Ÿ”’
    Given a list of proto files, extract the set of include directories needed to pass to the proto compiler.