Skip to main content

Module codegen

Module codegen 

Source
Expand description

Rust code generator from ASN.1 AST

Structs§

CodeGenConfig
Configuration options for code generation
CodeGenerator
Code generator

Enums§

DeriveMode
Controls how derive macros for ASN.1 types are emitted in generated code.
StringTypeMode
Controls whether string and binary ASN.1 types are generated as owned heap-allocating types or as zero-copy borrowed references.

Functions§

generate
Generate Rust code from an ASN.1 module using default configuration.
generate_with_config
Generate Rust code from an ASN.1 module with custom configuration.