lspf 0.7.0

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 WebSocket client.
//!
//! Build and run with:
//!
//! ```text
//! cargo run -p lspf --example native_websocket \
//!   --no-default-features --features websocket
//! ```

mod shared;

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