#protobuf-codegen #bindings

build protobuf-codegen

Code generator for Rust Protocol Buffers bindings

79 stable releases

new 4.31.0-rc.2 Apr 30, 2025
4.31.0-beta1 Mar 6, 2025
4.30.0-beta1 Dec 18, 2024
3.7.2 Mar 10, 2025
1.6.0 May 11, 2018

#178 in Development tools

Download history 133895/week @ 2025-01-13 120286/week @ 2025-01-20 120945/week @ 2025-01-27 163941/week @ 2025-02-03 184031/week @ 2025-02-10 169436/week @ 2025-02-17 191776/week @ 2025-02-24 181143/week @ 2025-03-03 195358/week @ 2025-03-10 187273/week @ 2025-03-17 174683/week @ 2025-03-24 181971/week @ 2025-03-31 182913/week @ 2025-04-07 171087/week @ 2025-04-14 179030/week @ 2025-04-21 166846/week @ 2025-04-28

711,273 downloads per month
Used in 423 crates (102 directly)

BSD-3-Clause

12KB
222 lines

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.

Dependencies

~205–300KB