Skip to main content

reference_json

Function reference_json 

Source
pub fn reference_json() -> String
Expand description

Serializes the canonical reference.json bytes.

Deterministic: sections sorted by name, two-space indentation, a single trailing newline — byte-identical across regenerations on the same platform. The f64 oracle vector’s bits are platform-libm-shaped by design; cross-platform verification is semantic (verify_str), never a byte compare of the whole file.

§Panics

Panics if a committed fixture is unreadable or fails to decode (see digest_of).