Function re_protos_builder::generate_rust_code
source ยท pub fn generate_rust_code(
definitions_dir: impl AsRef<Path>,
proto_paths: &[impl AsRef<Path>],
output_dir: impl AsRef<Path>,
)
Expand description
Generate rust from protobuf definitions. We rely on tonic_build
to do the heavy lifting.
tonic_build
relies on prost
which itself relies on protoc
.
Note: make sure to invoke this via pixi run codegen-protos
in order to use the right protoc
version.