Expand description
Runtime reader for the ironprint.json fingerprint embedded in the binary.
The companion build module (feature dependency-graph-build) writes
ironprint.json to $OUT_DIR at compile time. The downstream binary
embeds it with:
ⓘ
const IRONPRINT: &str = include_str!(concat!(env!("OUT_DIR"), "/ironprint.json"));§Functions
parse— deserialises the embedded JSON into a typedIronprintDatastruct. ReturnsCaptureErrorif the JSON is malformed or a required section is absent.as_bytes— returns the raw JSON bytes. Because the JSON is normalised and sorted at build time, the returned bytes are stable and deterministic across equivalent builds.
§Concerns
- The data is a read-only snapshot fixed at compile time. It reflects the build environment at the time of compilation, not the current runtime state.
- The fingerprint resides as plain text in the binary’s read-only data section. It is neither encrypted nor obfuscated and is visible to anyone with access to the binary.
Structs§
- Build
Info - Build environment section.
- Ironprint
Data - Parsed contents of
ironprint.json. - Package
Info - Package identity section.
Enums§
- Capture
Error - Errors that can occur while reading a captured ironprint.
Functions§
- as_
bytes - Return the raw bytes of the ironprint JSON string.
- parse
- Parse the embedded ironprint JSON into a typed
IronprintData.