Registry / other / protoc-rust-grpc

protoc-rust-grpc

JSON →
library0.8.3rscratesunverified

API to generate Rust gRPC code via protoc, without needing protoc-gen-rust-grpc.

# Cargo.toml [dependencies] protoc-rust-grpc = "0.8.3"
INSTALL
IMPORT
SIG · PROTOC-RUST-GRPC
P
protoc-rust-grpc
otherrustv0.8.3
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.

Codegen
use protoc_rust_grpc::Codegen;

Generate Rust gRPC code from a .proto file.

use protoc_rust_grpc::Codegen; fn main() { Codegen::new() .out_dir("src") .inputs(&["proto/service.proto"]) .include("proto") .run() .expect("protoc"); }
Debug
Known issues
gotchaRequires `protoc` binary in $PATH.
fix
Install protobuf compiler (e.g., `apt install protobuf-compiler`).
affects: >=0.8.0
Upgrade
Version history
0.8.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
protoc-rust-grpc — cargo add protoc-rust-grpc · libregistry