[][src]Module zamm_yang::codegen

Code generation utilities.

Modules

filesystem

Actual changes to the filesystem.

planning

High-level planning for what the final generation configs will look like. All logic that touch Yin concepts in the codegen module should live inside of this sub-module.

string_format

Format codegen.

track_autogen

Track autogenerated files.

Structs

CodeConfig

Configuration settings for generating a single concept's contents.

CodegenConfig

Runtime options for code generation.

StructConfig

Config representing an imported struct.

Functions

add_fmt_skips

Add any relevant rustfmt skip markers for autogenerated code.

add_indent

Indent a line by a certain number of spaces.

code

Generate code for a given concept. Post-processing still needed.

count_indent

Returns the indent, as well as the first non-whitespace character.

output_code

Perform post-processing on generated code given the options specified in codegen_cfg, and then output it to the given destination file path.