Skip to main content

Crate perl_lsp_feature_contracts

Crate perl_lsp_feature_contracts 

Source
Expand description

Shared feature contracts for profile parsing, BDD-grid rows, and capability mapping.

This crate defines the canonical FeatureProfileKind enum and associated FeatureProfileSpec metadata used for feature-coverage reporting. It sits between perl-lsp-feature-ids (raw identifiers) and perl-lsp-feature-policy (runtime capability selection).

Re-exports§

pub use catalog::Feature;
pub use catalog::LSP_VERSION;
pub use catalog::VERSION;
pub use catalog::advertised_features;
pub use catalog::compliance_percent;
pub use catalog::has_feature;

Modules§

catalog
Auto-generated feature catalog from features.toml.

Structs§

BddFeatureRow
Human-readable BDD-oriented feature row for automation and reporting.
FeatureProfileSpec
Canonical metadata for profile aliases and normalization behavior.

Enums§

FeatureProfileKind
Canonical profile definitions and alias map.

Constants§

FEATURE_PROFILE_SPECS
A serializable profile metadata row for tooling and interoperability.

Functions§

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.
caps_from_feature_ids
Build LSP ServerCapabilities from feature IDs.
compliance_percent_for_grid
Compliance percentage for the BDD grid (advertised / trackable, rounded).
feature_ids_from_caps
Extract feature IDs from LSP ServerCapabilities.
feature_profile_specs
Return canonical feature profile descriptors for tooling.
trackable_feature_count_for_grid
Number of BDD rows that participate in coverage accounting.