Skip to main content

Crate fleetix_sidecar

Crate fleetix_sidecar 

Source
Expand description

Generic Pkl-to-Nix sidecar generation, shared by Fleetix and its consumers.

Structs§

CacheOptions
Cache policy for a sidecar write. Cache failures fall back to evaluation.
EvalOptions
Options for eval_with_options.
WriteOutcome

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.