16 releases (9 breaking)
|0.10.3||May 5, 2022|
|0.10.1||Apr 13, 2022|
|0.10.0||Mar 29, 2022|
|0.9.0||Oct 13, 2021|
|0.1.0||Jun 25, 2017|
#69 in Network programming
813,969 downloads per month
Used in 649 crates (201 directly)
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 to parse the proto files. There are a few ways to make
The first option is to include
protoc in your
can be done by following the
protoc install instructions. In addition, its possible to
PROTOC=<my/path/to/protoc> environment variable.
The second option is to provide the
vendored feature flag to
prost-build. This will
prost-build to compile
protoc from the bundled source. This will require that
you have the correct dependencies installed include a C++ toolchain, cmake, etc. For
more info on what the required dependencies are check here.
If you would like to always ignore vendoring
protoc you can additionally pass
PROTOC_NO_VENDOR and this will always check the
variables and never compile
protoc from source.
prost-build is distributed under the terms of the Apache License (Version 2.0).
See LICENSE for details.
Copyright 2017 Dan Burkert