Skip to main content

generate_with_options

Function generate_with_options 

Source
pub fn generate_with_options(
    fds: &FileDescriptorSet,
    options: &CodegenOptions,
) -> Result<String, CodegenError>
Expand description

Generate Rust source code with custom codegen options.

This allows enabling additional features like doc comment generation, Default impls, deprecation attributes, and BTreeMap for map fields.