Skip to main content

generate

Function generate 

Source
pub fn generate(module: &Module) -> Result<String, Error>
Expand description

Generate Rust code from an ASN.1 module using default configuration.

All string and binary types are emitted as owned heap-allocating types (e.g. OctetString, BitString). Use generate_with_config together with CodeGenConfig to customise the output (e.g. to switch to zero-copy borrowed types via StringTypeMode::Borrowed).