Expand description
Format-neutral artifact parsing boundary and intermediate representation.
This crate owns no source-analysis dependency. Format backends turn bytes
into ArtifactIr; common metrics can then operate on that IR without
knowing whether it came from WebAssembly, ELF, or a later format.
Each format backend sits behind a feature of the same name, so a caller
that reads one format does not build the parsers for the others. The
archive feature turns on the four backends it delegates members to.
Modules§
- archive
- Static archive implementation of the codehelion artifact backend boundary.
- base64_
bytes - JSON uses base64 strings for opaque artifact payloads rather than one number per byte, while binary serde formats retain their usual byte form. Serde adapter for base64-encoded artifact byte payloads.
- dwarf
- Format-neutral DWARF source-location extraction for artifact backends.
- elf
- ELF implementation of the codehelion artifact backend boundary.
- macho
- Mach-O implementation of the codehelion artifact backend boundary.
- metrics
- Format-neutral duplicate grouping over
ArtifactIr. - native
- Shared native-object collection helpers.
- pe
- PE and COFF implementation of the codehelion artifact backend boundary.
- symbols
- Shared symbol-name presentation helpers for artifact backends.
- wasm
- WebAssembly implementation of the codehelion artifact backend boundary.
- x86
- Shared x86 instruction-shape normalization for native artifact backends.
Structs§
- Artifact
Archive Member - One object member observed inside a static archive.
- Artifact
Call - One relation from a caller to a direct target or an unresolved dispatch.
- Artifact
Capabilities - Information a format backend could establish without guessing.
- Artifact
Data Segment - A data region eligible for exact duplicate analysis.
- Artifact
Fingerprint - The stable content fingerprint of an artifact or entity inside one.
- Artifact
Import - A dependency the artifact declares without requiring it to be loaded.
- Artifact
Inline Frame - One source frame associated with an inlined artifact symbol.
- Artifact
Ir - One parsed artifact, independent of the container that supplied it.
- Artifact
Relocation - A relocation anchor retained as parsed evidence rather than a stable ID.
- Artifact
Section - One named or numbered region of an artifact.
- Artifact
Source Mapping - A source-map reference declared by an artifact.
- Artifact
Symbol - A function or symbol extracted from an artifact.
- Normalized
Instructions - A versioned representation used for normalized duplicate detection.
Enums§
- Artifact
Error - A parser failure that preserves the source artifact and never executes it.
- Artifact
Format - A binary container format that codehelion recognises.
- Artifact
Import Kind - Kind of an
ArtifactImport. - Artifact
Source Location Evidence Kind - Debug metadata family that established one artifact source location.
- Unresolved
Call - A conservative reason a call edge has no direct target.
Constants§
- ARTIFACT_
FINGERPRINT_ VERSION - Version of the fingerprint recipe for parsed artifact entities.
- ARTIFACT_
IR_ SCHEMA_ VERSION - Version of the artifact IR document.
Traits§
- Artifact
Backend - Format-specific parser isolated behind a common Artifact IR boundary.
Functions§
- detect_
format - Recognise supported and planned artifact formats from their magic bytes.