Expand description
Compatibility support-matrix accessor (read-only).
Loads the packaged support-matrix.json (copied from the evidence
workstream) and exposes feature-state queries by id and category, so
consumers and the CLI can report OPY support status without duplicating
the matrix.
The matrix is embedded at build time via include_str! rather than
loaded at runtime: the shipped artifact always carries the exact matrix CI
validated, no runtime file lookup or dependency is required, and cargo
rebuilds the crate automatically when the file changes. The module is a
strict read-only consumer — it never writes, rewrites, or caches a
modified copy of the matrix.
The five declared feature states (planned, source-supported,
semantic-supported, lowering-dependent, end-to-end-supported) are
documented in the matrix itself; Workshop-dependent items stay
lowering-dependent and are never approximated here (repo ownership
boundary: see AGENTS.md).
Structs§
- Feature
- One support-matrix feature entry.
- Matrix
Reference - The pinned reference identity recorded in the matrix.
- Matrix
Snapshot - The snapshot provenance recorded in the matrix.
- Matrix
Summary - The matrix summary (counts by state and category).
- Support
Matrix - The machine-readable support matrix, mirroring
compatibility/support-matrix.json. - Support
Matrix Error - A support-matrix load failure.
Constants§
- FEATURE_
STATES - The declared feature states (see the matrix’s
statesmap for wording). - SUPPORT_
MATRIX_ SCHEMA_ VERSION - The matrix schema version this module understands.