#protobuf #build #prost #proto3 #proto

build prost-build

A Protocol Buffers implementation for the Rust Language

31 releases

0.12.3 Nov 21, 2023
0.12.1 Sep 15, 2023
0.11.9 Apr 12, 2023
0.11.8 Feb 24, 2023
0.1.0 Jun 25, 2017

#4 in Build Utils

Download history 457421/week @ 2023-08-11 470440/week @ 2023-08-18 496442/week @ 2023-08-25 432900/week @ 2023-09-01 463899/week @ 2023-09-08 474474/week @ 2023-09-15 477668/week @ 2023-09-22 460718/week @ 2023-09-29 549162/week @ 2023-10-06 559478/week @ 2023-10-13 532521/week @ 2023-10-20 569583/week @ 2023-10-27 574593/week @ 2023-11-03 578425/week @ 2023-11-10 535023/week @ 2023-11-17 441341/week @ 2023-11-24

2,240,650 downloads per month
Used in 1,171 crates (334 directly)

Apache-2.0

430KB
8K 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

~7–18MB
~247K SLoC