Expand description
BDD grid and feature-profile interoperability primitives.
This crate intentionally contains only compatibility and reporting logic used by both the LSP binary and external tooling. It sits above the contract and policy microcrates to avoid feature-flag logic leaking back into the server module tree.
Modules§
- catalog
- Auto-generated feature catalog from
features.toml.
Structs§
- BddFeature
Row - Human-readable BDD-oriented feature row for automation and reporting.
- Feature
- Represents a single LSP feature with its metadata and implementation status
- Feature
Profile Spec - Canonical metadata for profile aliases and normalization behavior.
Enums§
- Feature
Profile - Known feature profiles for runtime capability selection.
Constants§
- FEATURE_
GRID_ COLUMNS - Stable BDD grid column order used by reporting tools.
- LSP_
VERSION - LSP protocol version supported by this parser implementation
- VERSION
- Current parser version extracted from features.toml metadata
Functions§
- advertised_
features - Returns advertised feature IDs (GA/production and
advertised = true). - advertised_
trackable_ feature_ count_ for_ grid - Number of advertised BDD rows that participate in coverage accounting.
- all_
features - All discovered LSP features in canonical declaration order.
- bdd_
feature_ rows - Export feature rows suitable for BDD matrices and acceptance criteria tooling.
- catalog_
advertised_ feature_ ids - Return advertised feature IDs from the current profile, intersecting with the catalog so this API remains aligned to the BDD grid.
- compliance_
percent - Returns the current LSP compliance percentage as a float.
- compliance_
percent_ for_ grid - Compliance percentage for the BDD grid (
advertised / trackable, rounded). - compliance_
percent_ for_ profile - Compliance percent for a specific runtime profile, using the same grid semantics.
- feature_
profile_ contracts - Return profile metadata for interoperability with CLI and editor tooling.
- feature_
profile_ specs - Return canonical feature profile descriptors for tooling.
- has_
feature - Checks whether a feature is currently advertised.
- to_json
- Get the global feature catalog as JSON.
- to_
json_ for_ all_ profiles - BDD-compatible feature catalog JSON with all canonical profiles.
- to_
json_ for_ profile - Profile-aware feature catalog JSON.
- to_
json_ for_ profiles - BDD-compatible feature catalog JSON for an explicit profile set.
- trackable_
feature_ count_ for_ grid - Number of BDD rows that participate in coverage accounting.