Configuration


Use a .gluerc file to set defaults and per-target overrides for code generation.

#Supported config files

Glue auto-detects these files next to your input file:

  • .gluerc (YAML)
  • .gluerc.yaml
  • .gluerc.yml
  • .gluerc.json

If no config file is found, Glue uses built-in defaults.

To use a specific config file:

shell

#How the config is structured

  • global: defaults applied to every generation entry.
  • gen: a list of per-input rules (files) with optional output and overrides.

#Example

yaml

#Notes

  • output supports {file_name} and {file_ext} placeholders.
  • watermark supports full, short, or none.
  • python.data_model_library supports pydantic, dataclasses, attrs, or msgspec.