lsp-client

Crates.iolsp-client
lib.rslsp-client
version0.1.0
created_at2025-02-16 18:06:23.147318+00
updated_at2025-02-16 18:06:23.147318+00
descriptionA client for the Language Server Protocol
homepage
repositoryhttps://github.com/unknown/lsp-client
max_upload_size
id1558025
size31,005
David Mo (unknown)

documentation

README

lsp-client

crates.io Documentation MIT licensed

A client for the Language Server Protocol.

Usage

Start a language server and create a client to communicate with it.

let mut child = Command::new("rust-analyzer")
    .stdin(Stdio::piped())
    .stdout(Stdio::piped())
    .spawn()
    .unwrap();

let stdin = child.stdin.take().unwrap();
let stdout = child.stdout.take()..unwrap();
let (tx, rx) = io_transport(stdin, stdout);
let client = LspClient::new(tx, rx);

See the examples directory for more usage examples.

Commit count: 2

cargo fmt