Skip to main content

Module support

Module support 

Source
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.
MatrixReference
The pinned reference identity recorded in the matrix.
MatrixSnapshot
The snapshot provenance recorded in the matrix.
MatrixSummary
The matrix summary (counts by state and category).
SupportMatrix
The machine-readable support matrix, mirroring compatibility/support-matrix.json.
SupportMatrixError
A support-matrix load failure.

Constants§

FEATURE_STATES
The declared feature states (see the matrix’s states map for wording).
SUPPORT_MATRIX_SCHEMA_VERSION
The matrix schema version this module understands.