decl-lang 0.4.7

Decl — a declarative language for describing, generating, and validating structured data: the `decl` CLI (check / evaluate / validate / fmt) and the `decl-lsp` language server, implemented natively in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! The `decl-lsp` binary — the language server over stdio (lsp.rs).

// a fast allocator for the binary only (the library sets none) (F21)
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

fn main() {
    // `decl-lsp --version`: the same string as `decl --version`
    if std::env::args().skip(1).any(|a| a == "--version") {
        println!("decl-lsp {}", env!("CARGO_PKG_VERSION"));
        return;
    }
    std::process::exit(decl_lang::lsp::main());
}