pub fn encode_descriptor_set(
file_descriptors: &[FileDescriptorProto],
feature_overrides: &[(String, FeatureOverride)],
) -> Vec<u8> ⓘExpand description
Encode the shared reflection FileDescriptorSet for a codegen run, with
source_code_info stripped, ready to embed once at the module-tree root in
shared-pool mode.
file_descriptors is the full transitive closure (the same slice passed to
generate). Front-ends (buffa-build, protoc-gen-reallyme-buffa-packaging)
call this to obtain the single copy of the bytes, then hand them to
shared_descriptor_root_module.