#protobuf #buffer #protocols #prost #proto #build #cargo-build

build prost-build

Generate Prost annotated Rust types from Protocol Buffers files

33 releases

new 0.12.6 May 17, 2024
0.12.4 Apr 5, 2024
0.12.3 Nov 21, 2023
0.11.9 Apr 12, 2023
0.1.0 Jun 25, 2017

#20 in Build Utils

Download history 667789/week @ 2024-01-27 681848/week @ 2024-02-03 693831/week @ 2024-02-10 674103/week @ 2024-02-17 768220/week @ 2024-02-24 731196/week @ 2024-03-02 704686/week @ 2024-03-09 713136/week @ 2024-03-16 717993/week @ 2024-03-23 774129/week @ 2024-03-30 769299/week @ 2024-04-06 782552/week @ 2024-04-13 806033/week @ 2024-04-20 755155/week @ 2024-04-27 764326/week @ 2024-05-04 736266/week @ 2024-05-11

3,196,400 downloads per month
Used in 1,351 crates (379 directly)

Apache-2.0

435KB
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–17MB
~229K SLoC