Skip to main content

Module io

Module io 

Source
Expand description

Shared JSON read/write helpers for the pipeline stages.

Every stage serializes artifacts the same way: pretty-printed, two-space indent, one trailing newline. serde_json’s preserve_order feature keeps object key order stable so artifacts diff cleanly across runs.

Functions§

now_iso8601
The current wall clock as 2026-06-08T12:00:00.000Z, matching JS new Date().toISOString() — the generated stamp every report carries. chrono ships without its clock feature, so the instant comes from std::time and is formatted via chrono.
write_json
Write value to path as pretty JSON with a trailing newline.