Skip to main content

Module registry

Module registry 

Source

Structs§

ServerEntry
Full metadata for an LSP server.

Enums§

ArchiveType
Archive format for downloaded files.
InstallMethod
How to acquire an LSP server binary.

Functions§

detect_platform
Detect the current platform for download URL resolution. Returns (platform, arch) matching rust-analyzer’s naming convention.
find_in_path
Check if a binary exists in PATH.
find_managed
Check if a managed binary exists in ~/.krait/servers/ or tool-specific locations.
find_server
Find the server binary for a specific entry — checks PATH first, then managed directory.
get_entries
Get all server entries for a language, in preference order.
get_entry
Get the preferred (first) server entry for a language.
resolve_download_url
Resolve the download URL for a GitHub release asset. Returns None if the install method is not a GitHub release.
resolve_server
Resolve the best available server for a language.
servers_dir
Global directory for managed LSP server binaries.