Expand description
qlue-ls language server library.
This crate provides the core language server implementation for SPARQL, usable from both native and WASM targets.
§Native Usage
For native builds (including tests), use the re-exported server types:
Server(orLspServer): The main server structhandle_message(orhandle_lsp_message): Process incoming LSP messagesformat_raw: Format SPARQL queries directlyformat_with_settings: Format with custom settings
§WASM Usage
For WASM builds, additional functions are available:
- [
init_language_server]: Creates a new server instance with a Web Streams writer - [
listen]: Main event loop using Web Streams API for I/O
§Related Modules
server: Core server implementation shared across all targetsmain.rs(native only): CLI entry point using stdio
Structs§
Functions§
- format_
raw - format_
with_ settings - Format SPARQL text with custom settings.
- handle_
lsp_ message - handle_
message