pub fn as_bytes(json: &str) -> &[u8] ⓘExpand description
Return the raw bytes of the fingerprint JSON string.
Because fingerprint.json is already normalised (sorted keys, no whitespace,
no absolute paths) at build time, the returned bytes are stable and
deterministic across equivalent builds.
ⓘ
const BUILD_TIME_FINGERPRINT: &str = include_str!(concat!(env!("OUT_DIR"), "/fingerprint.json"));
let bytes: &[u8] = toolkit_zero::dependency_graph::capture::as_bytes(BUILD_TIME_FINGERPRINT);