mz_lsp_server/
lib.rs

1// Copyright Materialize, Inc. and contributors. All rights reserved.
2//
3// Use of this software is governed by the Business Source License
4// included in the LICENSE file.
5//
6// As of the Change Date specified in that file, in accordance with
7// the Business Source License, use of this software will be governed
8// by the Apache License, Version 2.0.
9
10//! `lsp` is Materialize Language Server Protocol (LSP) implementation
11#![warn(missing_docs)]
12
13use mz_build_info::{BuildInfo, build_info};
14use std::sync::LazyLock;
15
16/// Build information about the LSP server.
17pub const BUILD_INFO: BuildInfo = build_info!();
18/// Variable holding the version of LSP server.
19pub static PKG_VERSION: LazyLock<String> =
20    LazyLock::new(|| BUILD_INFO.semver_version().to_string());
21/// Variable holding the name of LSP server package.
22pub static PKG_NAME: LazyLock<String> = LazyLock::new(|| env!("CARGO_PKG_NAME").to_string());
23
24/// Contains the structure and implementation of the Language Server Protocol.
25pub mod backend;