Expand description
Build-time helpers for compiling the bundled .proto definitions into Rust.
Enabled by the build feature (off by default). The sole public entry
point is build_support::generate_protos, called from a consumer’s
build.rs.
Build-time helpers for compiling the bundled .proto definitions into Rust.
Two public items are defined here:
- [
generate_protos] — the single function consumers call from theirbuild.rs. It discovers all.protofiles shipped with this crate, compiles them withtonic-prost-build, and writesproto.rsintoOUT_DIR. - [
Config] — a builder that wrapstonic_prost_build::Builderand exposes attribute-injection methods for customising the generated code.
Private helpers live in the [file_utils] and [proto_rs] sub-modules.
Structs§
- Config
- Provides configuration options for the generated code.
Functions§
- generate_
protos - Compile the bundled
.protodefinitions and write aproto.rsinto your crate’sOUT_DIR.