Skip to main content

Crate perl_lsp_feature_grid

Crate perl_lsp_feature_grid 

Source
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§

BddFeatureRow
Human-readable BDD-oriented feature row for automation and reporting.
Feature
Represents a single LSP feature with its metadata and implementation status
FeatureProfileSpec
Canonical metadata for profile aliases and normalization behavior.

Enums§

FeatureProfile
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.