Expand description
CLI and startup configuration primitives for the Perl LSP binary.
This crate extracts the runtime launch decision surface into a dedicated crate so feature profiles, transport mode semantics, and BDD-grid interoperability stay in one place and remain stable across binaries.
Re-exports§
pub use timing::StartupReport;pub use timing::StartupTimer;
Modules§
- timing
- Lightweight startup phase timer for profiling server initialization.
Structs§
- Launch
Config - Canonical launch configuration consumed by the server runtime.
- Launch
Plan - Fully resolved launch request.
- LspArgs
- Command line arguments for the Perl LSP binary.
- Transport
Args - Transport options shared by server binaries.
Enums§
- Feature
Profile - Known feature profiles for runtime capability selection.
- Launch
Action - Runtime action selected by CLI parsing.
- Launch
Parse Error - Parse-time errors emitted by the CLI parser.
- Transport
Mode - How the server should connect to the editor or test client.
Constants§
- DEFAULT_
LSP_ PORT - Default port used by socket transport.
Functions§
- 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_ for_ profile - Compliance percent for a specific runtime profile, using the same grid semantics.
- format_
health_ output - Format a colored health status line.
- format_
info_ output - Format the
--infooutput block. - format_
startup_ banner - Format the one-line process-start banner written to stderr before the LSP handshake.
- help_
text - Human-readable CLI help text shared by CLI consumers.
- init_
logging - Initialize tracing once for the current process.
- log_
server_ startup - Emit a consistent startup log line for server binaries.
- logging_
filter - Resolve the effective tracing filter for the current process.
- parse_
args - Parse command line arguments for the Perl LSP launcher.
- port_
in_ use_ message - Produce a user-friendly message when the TCP port is already in use.
- shell_
completion - Generate shell completion script for the given shell name.
- should_
enable_ logging - Returns whether runtime logging should be enabled.
- startup_
banner - Emit the process-start banner to stderr.
- to_
json_ for_ profile - Profile-aware feature catalog JSON.
- trackable_
feature_ count_ for_ grid - Number of BDD rows that participate in coverage accounting.