10 releases (5 breaking)

0.6.1 Jul 10, 2023
0.6.0 Jun 12, 2022
0.5.0 Mar 26, 2022
0.4.0 Jan 28, 2022
0.1.1 Dec 28, 2020

#8 in #stub

Download history 14042/week @ 2024-03-04 11537/week @ 2024-03-11 14434/week @ 2024-03-18 14328/week @ 2024-03-25 8027/week @ 2024-04-01 8387/week @ 2024-04-08 6920/week @ 2024-04-15 7482/week @ 2024-04-22 8831/week @ 2024-04-29 7268/week @ 2024-05-06 7618/week @ 2024-05-13 10097/week @ 2024-05-20 8091/week @ 2024-05-27 5316/week @ 2024-06-03 6111/week @ 2024-06-10 6918/week @ 2024-06-17

26,800 downloads per month
Used in 4 crates

MIT license

49KB
1.5K SLoC

LSP Async Stub

This library provides utilities and a basic server stub for asynchronous LSP communication with JSON RPC.

Used mainly by taplo-lsp.

The server stub expects async handlers that will be called for each message along with the parameters in the message and a context for shared data, cancellation and sending further requests/notifications back to the client. It also handles invalid messages, initialization and teardown according to the LSP spec.

Dependencies

~4–14MB
~190K SLoC