Registry / build-tool / protoc-grpcio

protoc-grpcio

JSON →
library3.0.0rscratesunverified

API for programatically invoking the grpcio (grpc-rs) gRPC compiler.

# Cargo.toml [dependencies] protoc-grpcio = "3.0.0"
INSTALL
IMPORT
SIG · PROTOC-GRPCIO
P
protoc-grpcio
build-toolrustv3.0.0
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 protoc_grpcio::compile_protos;

Compile a protobuf file to generate gRPC client/server code.

use protoc_grpcio::compile_protos; compile_protos(&["proto/hello.proto"], &["."]).unwrap();
Debug
Known issues
gotchaRequires protoc compiler to be installed on the system.
fix
Install protoc via your package manager or download from https://github.com/protocolbuffers/protobuf/releases.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
OpenAI (training)
1
Resources
protoc-grpcio — cargo add protoc-grpcio · libregistry