Expand description
Generic Pkl-to-Nix sidecar generation, shared by Fleetix and its consumers.
Structs§
- Cache
Options - Cache policy for a sidecar write. Cache failures fall back to evaluation.
- Eval
Options - Options for
eval_with_options. - Write
Outcome
Functions§
- check
- Compare a sidecar with a fresh render, without writing an output or cache. A missing destination is stale; other read and evaluation errors are reported. Comparison is byte-for-byte, including the generated-file header.
- check_
sync - Synchronous read-only comparison for frontends outside a Tokio runtime.
- options_
with_ http - Configure HTTP access for Pkl imports. Non-default HTTP settings bypass the persistent cache because their response content may change remotely.
- render
- Render a Pkl file as an importable Nix expression.
- write
- Render and write a sidecar atomically. An unchanged output is left untouched.
- write_
sync - Synchronous entry point for embedding in command-line tools.
- write_
with_ cache - write_
with_ cache_ sync - Synchronous sidecar generation with explicit cache policy.