API to generate .rs files for ttrpc from protobuf
API to generate .rs files to be used e. g. from build.rs.
Example
build.rs:
use Codegen;
use ;
Cargo.toml:
[build-dependencies]
ttrpc-codegen = "0.2"
Versions
| ttrpc-codegen version | ttrpc version |
|---|---|
| 0.1.x | <= 0.4.x |
| 0.2.x | >= 0.5.x |
| 0.3.x | >= 0.6.x |
Alternative
The alternative is to use
protoc-rust crate,
which relies on protoc command to parse descriptors. Both crates should produce the same result,
otherwise please file a bug report.