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§
- Cache
Config - 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.
- Render
Config - 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).
- Target
Config - Concrete target the engine evaluates predicates against.
- Workspace
Config - Workspace discovery + adapter routing.
Enums§
Functions§
- target_
from_ config - Convenience: build a
gen_types::Targetfrom the config’sTargetConfig. Engines call this to seed predicate evaluation.