solar-cli 0.2.0

Solar compiler CLI definitions, utils, and driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use solar_config::LspArgs;
use std::process::ExitCode;

pub(super) fn run(args: LspArgs) -> ExitCode {
    match tokio::runtime::Builder::new_multi_thread()
        .enable_all()
        .build()
        .unwrap()
        .block_on(solar_lsp::run_server_stdio(args))
    {
        Ok(()) => ExitCode::SUCCESS,
        Err(_) => ExitCode::FAILURE,
    }
}