ruitl_lsp 0.2.0

Language server for RUITL templates — diagnostics, formatting, completion, hover, go-to-definition
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `ruitl-lsp` binary. Stdio transport only — editors spawn this as a
//! subprocess and communicate over JSON-RPC on stdin/stdout.

use ruitl_lsp::Backend;
use tower_lsp::{LspService, Server};

#[tokio::main(flavor = "multi_thread")]
async fn main() {
    let stdin = tokio::io::stdin();
    let stdout = tokio::io::stdout();

    let (service, socket) = LspService::build(Backend::new).finish();
    Server::new(stdin, stdout, socket).serve(service).await;
}