lspf 0.5.1

A Rust framework for building extensible LSP language servers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Serve the shared example handlers to one native TCP client.
//!
//! Build and run with:
//!
//! ```text
//! cargo run -p lspf --example native_tcp \
//!   --no-default-features --features tcp
//! ```

mod shared;

#[tokio::main]
async fn main() -> lspf::Result<()> {
    let server = shared::build().expect("the shared registrations are valid");
    let outcome = lspf::tcp(server, "127.0.0.1:9257").serve().await?;
    std::process::exit(outcome.code());
}