Expand description
Feature governance façade for Perl LSP.
This crate consolidates profile policy and BDD-grid reporting APIs into a single stability boundary so runtime startup and external tooling share one canonical implementation.
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.
- Unsupported
Feature Profile Error - Structured parse error for invalid profile tokens.
Enums§
- Feature
Profile - Known feature profiles for runtime capability selection.
- Feature
Profile Kind - Canonical profile definitions and alias map.
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.
- caps_
from_ feature_ ids - Build LSP
ServerCapabilitiesfrom feature IDs. - 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_
ids_ from_ caps - Extract feature IDs from LSP
ServerCapabilities. - feature_
ids_ from_ flags - Convert
BuildFlagsinto canonical LSP feature identifiers. - feature_
profile_ contracts - Return profile metadata for interoperability with CLI and editor tooling.
- feature_
profile_ label - Canonical profile label for logs and diagnostics.
- feature_
profile_ metadata - Return the canonical profile metadata contract rows used by BDD reporting.
- feature_
profile_ specs - Return canonical feature profile descriptors for tooling.
- feature_
profile_ supported_ tokens - Supported CLI tokens accepted by the profile parser.
- flags_
for_ profile - Resolve
BuildFlagsfor the profile. - flags_
for_ runtime - Resolve
BuildFlagsfor runtime startup where formatting is conditional on external tooling availability. - has_
feature - Checks whether a feature is currently advertised.
- parse_
feature_ profile_ arg - Parse a
--feature-profileargument into a runtime policy. - parse_
feature_ profile_ arg_ or_ current - Parse a profile argument and fall back to
FeatureProfile::current(). - parse_
profile_ name - Parse a raw profile token into canonical form.
- parse_
profile_ token - Parse and normalize user input with trimming and legacy delimiter compatibility.
- supported_
cli_ profiles - Return every supported CLI token for profile parsing/validation.
- 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.