#protobuf-codegen #bindings

build protobuf-codegen

Code generator for Rust Protocol Buffers bindings

79 stable releases

4.31.0-release May 14, 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

#208 in Development tools

Download history 155993/week @ 2025-02-01 185727/week @ 2025-02-08 170064/week @ 2025-02-15 189479/week @ 2025-02-22 182587/week @ 2025-03-01 194969/week @ 2025-03-08 188803/week @ 2025-03-15 177123/week @ 2025-03-22 179351/week @ 2025-03-29 183886/week @ 2025-04-05 173580/week @ 2025-04-12 177412/week @ 2025-04-19 170656/week @ 2025-04-26 149590/week @ 2025-05-03 153923/week @ 2025-05-10 126756/week @ 2025-05-17

628,561 downloads per month
Used in 427 crates (104 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