Registry / other / tower-lsp

tower-lsp

JSON →
library0.20.0rscratesunverified

Language Server Protocol implementation based on Tower

# Cargo.toml [dependencies] tower-lsp = "0.20.0"
INSTALL
IMPORT
SIG · TOWER-LSP
T
tower-lsp
otherrustv0.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LspService
use tower_lsp::LspService;

Start a basic LSP server that does nothing.

use tower_lsp::{LspService, Server}; #[tokio::main] async fn main() { let stdin = tokio::io::stdin(); let stdout = tokio::io::stdout(); let (service, socket) = LspService::new(|_| ()); Server::new(stdin, stdout, socket).serve(service).await; }
Debug
Known issues
gotchaRequires a Tokio runtime (async)
fix
Add `tokio` with `full` features and use `#[tokio::main]`
affects: >=0.1.0
Upgrade
Version history
0.20.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
tower-lsp — cargo add tower-lsp · libregistry