Skip to main content

generate_adapters

Function generate_adapters 

Source
pub fn generate_adapters(
    files: &[FileDescriptorProto],
    requested: &[String],
    config: &AdapterConfig,
) -> Result<Vec<GeneratedFile>, AdapterError>
Expand description

Generate standalone native adapter files, validating complete coverage first.

Outputs have GeneratedFileKind::Adapter and are intentionally excluded from the portable module tree. Include each in its native API module. This function neither reads files nor changes descriptors or portable generation.

§Errors

Returns a fixed ErrorReason for invalid metadata, incomplete coverage, incompatible ownership, ambiguous aliases or sources outside the request.