#protobuf #prost #protocol-buffers #build #proto #parser #buffer #protoc

build prost-build

A Protocol Buffers implementation for the Rust Language

24 releases

0.11.6 Jan 10, 2023
0.11.5 Dec 20, 2022
0.11.3 Nov 29, 2022
0.11.0 Jul 29, 2022
0.1.0 Jun 25, 2017

#4 in Build Utils

Download history 296993/week @ 2022-10-13 317210/week @ 2022-10-20 284160/week @ 2022-10-27 314193/week @ 2022-11-03 303022/week @ 2022-11-10 300863/week @ 2022-11-17 284719/week @ 2022-11-24 313450/week @ 2022-12-01 309726/week @ 2022-12-08 289642/week @ 2022-12-15 158116/week @ 2022-12-22 176347/week @ 2022-12-29 312128/week @ 2023-01-05 304392/week @ 2023-01-12 315074/week @ 2023-01-19 287318/week @ 2023-01-26

1,271,369 downloads per month
Used in 853 crates (264 directly)

Apache-2.0

400KB
7K SLoC

Documentation Crate

prost-build

prost-build makes it easy to generate Rust code from .proto files as part of a Cargo build. See the crate documentation for examples of how to integrate prost-build into a Cargo project.

protoc

prost-build uses protoc to parse the proto files. There are two ways to make protoc available for prost-build:

  • Include protoc in your PATH. This can be done by following the protoc install instructions.
  • Pass the PROTOC=<my/path/to/protoc> environment variable with the path to protoc.

License

prost-build is distributed under the terms of the Apache License (Version 2.0).

See LICENSE for details.

Copyright 2017 Dan Burkert

Dependencies

~2.9–4MB
~98K SLoC