protobuf-codegen

Crates.ioprotobuf-codegen
lib.rsprotobuf-codegen
version4.32.1-release
created_at2018-05-11 00:51:51.563231+00
updated_at2025-09-11 21:46:20.478804+00
descriptionCode generator for Rust Protocol Buffers bindings
homepage
repository
max_upload_size
id64781
size14,967
protobuf-team (github:protocolbuffers:protobuf-team)

documentation

README

The build time dependency crate for generating code for the official Google Rust Protobuf implementation.

The code generated by this is expected to be used in conjunction with the official Protobuf crate.

This is currently a beta release: the API is subject to change, and there may be some rough edges, including missing documentation and features.

How to get a compatible version of protoc

The protoc binary that you use to generate code needs to have a version that exactly matches the version of the protobuf crate you are using. More specifically, if you are using Rust protobuf x.y.z then you need to use protoc y.z. See here for more details on our versioning scheme.

The easiest way to get ahold of protoc is to download a prebuilt binary from the matching release here. Just make sure protoc is on your $PATH when you run cargo.

Commit count: 0

cargo fmt