1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # tokio-lsp
//!
//! A Language Server Protocol (LSP) client implementation in Rust.
//!
//! This crate provides a lightweight, async-first LSP client that can be integrated
//! into text editors and IDEs. It implements the LSP 3.16 specification and focuses
//! on providing a clean, safe API for communicating with language servers.
//!
//! ## Features
//!
//! - Full LSP 3.16 specification support
//! - Async/await interface using tokio
//! - Type-safe message handling with serde
//! - Comprehensive error handling
//! - Transport layer abstraction
//!
//! ## Example
//!
//! ```rust,no_run
//! use tokio_lsp::Client;
//! use tokio::process::{ChildStdin, ChildStdout};
//! use std::io::Cursor;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Example using mock streams
//! let reader = Cursor::new(vec![]);
//! let writer = Cursor::new(Vec::new());
//! let client = Client::new(reader, writer);
//! // In real usage, you'd connect to a language server process
//! // and use its stdin/stdout for reader/writer
//! Ok(())
//! }
//! ```
pub use Client;
pub use ;
/// Re-export commonly used types