#protobuf #protoc #buffer #generator #protocols #bindings #version

staging-protobuf-codegen

Code generator for Rust Protocol Buffers bindings

4 releases

new 4.30.0-beta1 Dec 18, 2024
4.30.0-beta.1 Dec 5, 2024
4.30.0-beta Dec 4, 2024
4.27.3-beta.0 Oct 22, 2024

#19 in #protoc

Download history 148/week @ 2024-10-21 7/week @ 2024-10-28 318/week @ 2024-12-02 130/week @ 2024-12-09

448 downloads per month
Used in staging-protobuf-example

BSD-3-Clause

11KB
186 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

Usage of this crate currently requires protoc to be built from source, as it relies on changes that have not been included in the newest protoc release yet.

A future stable release will be compatible with the officially released protoc binaries.

You can build a compatible protoc from source as follows:

git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git checkout $TAG
cmake . -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON
cmake --build . --parallel 12"

Dependencies

~230–325KB