Registry / networking / tonic-build

tonic-build

JSON →
library0.14.6rscratesunverified

Codegen module of `tonic` gRPC implementation.

# Cargo.toml [dependencies] tonic-build = "0.14.6"
INSTALL
IMPORT
SIG · TONIC-BUILD
T
tonic-build
networkingrustv0.14.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compile_protos
use tonic_build::compile_protos;

Compile a .proto file to generate Rust gRPC code in a build script.

use tonic_build::compile_protos; fn main() -> Result<(), Box<dyn std::error::Error>> { compile_protos("proto/helloworld.proto")?; Ok(()) }
Debug
Known issues
gotchaRequires `protoc` binary installed on the system.
fix
Install protobuf compiler (protoc) via your package manager or from https://github.com/protocolbuffers/protobuf/releases.
affects: >=0.14.0
Upgrade
Version history
0.14.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
tonic-build — cargo add tonic-build · libregistry