#lsp #server #scaffold

lsp-server

Generic LSP server scaffold

12 unstable releases (4 breaking)

0.5.2 Jun 28, 2021
0.5.0 Nov 16, 2020
0.3.3 Jun 20, 2020
0.3.1 Dec 31, 2019
0.3.0 Nov 7, 2019
Download history 10585/week @ 2021-08-13 21012/week @ 2021-08-20 19991/week @ 2021-08-27 16380/week @ 2021-09-03 16181/week @ 2021-09-10 15261/week @ 2021-09-17 16363/week @ 2021-09-24 10005/week @ 2021-10-01 17215/week @ 2021-10-08 21719/week @ 2021-10-15 23152/week @ 2021-10-22 20922/week @ 2021-10-29 20014/week @ 2021-11-05 11217/week @ 2021-11-12 10936/week @ 2021-11-19 8832/week @ 2021-11-26

55,547 downloads per month
Used in 13 crates (10 directly)

MIT/Apache

26KB
537 lines

lsp-server

A language server scaffold exposing a crossbeam-channel API.

Description

This crate is a language server scaffold, exposing a synchronous crossbeam-channel based API. It handles protocol handshaking and parsing messages, while you control the message dispatch loop yourself.

See examples/goto_def.rs for a minimal example LSP server that can only respond to the gotoDefinition request. To use the example, execute it and then send an initialize request.

Dependencies

~1.1–2MB
~43K SLoC