maslc 1.0.1

Maduka Authorization Specification Language (MASL) toolchain and runtime
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::exit;

/// Runs the `lsp` command, starting the MASL language server.
pub fn run(port: Option<u16>) {
    if port.is_some() {
        eprintln!("TCP transport not supported yet. Starting stdio...");
    }
    let rt = tokio::runtime::Runtime::new().unwrap();
    rt.block_on(async {
        masl_lsp::start_lsp_server().await;
    });
    exit(0);
}