pub fn compile_proto_to_bytes(
proto_paths: &[&Path],
include_paths: &[&Path],
) -> Result<Vec<u8>, ProtoSchemaError>Expand description
Compiles one or more .proto files directly to FileDescriptorSet
bytes, without needing a protoc binary on PATH - protox parses
and resolves .proto syntax itself (pure Rust). Equivalent to
protoc --include_imports in that every type reachable from
proto_paths (via include_paths) ends up present in the set, which
build_arrow_schema (and any decode crate built on top of this)
requires.
§Errors
Returns ProtoSchemaError::Compile if the .proto sources fail to
parse, resolve, or encode to a FileDescriptorSet.