Skip to main content

Crate gen_config

Crate gen_config 

Source
Expand description

gen-config — typed operator-facing configuration for the gen engine. Implements shikumi::TieredConfig; every consumer resolves via GenConfig::resolve_from_env("GEN_TIER") at startup.

The four typed slot groups (workspace / cache / render / target) cover every knob an operator can flip without recompiling. New knobs land here, not in CLI flags — flags are a view, config is the substrate.

Structs§

CacheConfig
Substituter / cache settings. Engine consults this before deciding to evaluate a derivation; substituter hits short-circuit the rebuild.
GenConfig
Top-level config. Composes the four typed sub-slots.
RenderConfig
Render-shape settings. Controls whether the engine emits per-crate derivations (crate2nix shape, default for incremental local dev) or per-tree derivations (crane shape, default for CI bulk builds).
TargetConfig
Concrete target the engine evaluates predicates against.
WorkspaceConfig
Workspace discovery + adapter routing.

Enums§

RenderMode

Functions§

target_from_config
Convenience: build a gen_types::Target from the config’s TargetConfig. Engines call this to seed predicate evaluation.