camel-proto-compiler
Runtime
.protofile compilation for rust-camel
Overview
camel-proto-compiler compiles .proto files at runtime and returns a prost_reflect::DescriptorPool for dynamic protobuf and gRPC use cases.
Features
- Compile
.protofiles toDescriptorPoolat runtime - Vendored
protoc(zero-install) withPROTOCenv var fallback - Thread-safe cache keyed by
(path, SHA-256 content hash) - Returns
prost-reflectDescriptorPooldirectly (no round-trip)
Installation
Add to your Cargo.toml:
[]
= "*"
Usage
use ;
let pool = compile_proto?;
let cache = new;
let pool = cache.get_or_compile?;
License
Apache-2.0