{"id":18455652,"url":"https://github.com/latex-lsp/language-server","last_synced_at":"2025-04-08T04:34:07.077Z","repository":{"id":48486955,"uuid":"261463422","full_name":"latex-lsp/language-server","owner":"latex-lsp","description":"A library to implement language servers in Rust.","archived":false,"fork":false,"pushed_at":"2021-07-23T05:58:16.000Z","size":89,"stargazers_count":32,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T06:11:31.486Z","etag":null,"topics":["language-server-protocol","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/latex-lsp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-05T12:37:05.000Z","updated_at":"2025-01-26T11:44:24.000Z","dependencies_parsed_at":"2022-09-06T05:31:50.632Z","dependency_job_id":null,"html_url":"https://github.com/latex-lsp/language-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latex-lsp%2Flanguage-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latex-lsp%2Flanguage-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latex-lsp%2Flanguage-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latex-lsp%2Flanguage-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/latex-lsp","download_url":"https://codeload.github.com/latex-lsp/language-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779796,"owners_count":20994569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["language-server-protocol","rust"],"created_at":"2024-11-06T08:08:40.417Z","updated_at":"2025-04-08T04:34:06.742Z","avatar_url":"https://github.com/latex-lsp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/latex-lsp/language-server/workflows/CI/badge.svg)](https://github.com/latex-lsp/language-server/actions)\n[![Coverage](https://codecov.io/gh/latex-lsp/language-server/branch/master/graph/badge.svg)](https://codecov.io/gh/latex-lsp/language-server)\n[![Rust](https://img.shields.io/badge/rustc-1.39%2B-blue)](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html)\n[![LSP](https://img.shields.io/badge/lsp-3.15-blue)](https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/)\n[![Dependabot](https://api.dependabot.com/badges/status?host=github\u0026repo=latex-lsp/language-server)](https://dependabot.com)\n[![crates.io](https://img.shields.io/crates/v/language-server)](https://crates.io/crates/language-server)\n[![docs.rs](https://docs.rs/language-server/badge.svg)](https://docs.rs/language-server)\n\n# language-server\n\nA library to implement asynchronous language servers in Rust. It features\n\n- Full server and client support of the\n  [Language Server Protocol 3.15](https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/).\n- Independent of the underlying transport layer and the used async executor.\n\n## Example\n\nA simple language server using the [Tokio](https://tokio.rs/) runtime:\n\n```rust\nuse async_executors::TokioTp;\nuse language_server::{async_trait::async_trait, types::*, *};\nuse std::{convert::TryFrom, sync::Arc};\nuse tokio_util::compat::*;\n\nstruct Server;\n\n#[async_trait]\nimpl LanguageServer for Server {\n    async fn initialize(\n        \u0026self,\n        _params: InitializeParams,\n        _client: Arc\u003cdyn LanguageClient\u003e,\n    ) -\u003e Result\u003cInitializeResult\u003e {\n        Ok(InitializeResult::default())\n    }\n\n    async fn initialized(\u0026self, _params: InitializedParams, client: Arc\u003cdyn LanguageClient\u003e) {\n        let params = ShowMessageParams {\n            typ: MessageType::Info,\n            message: \"Hello World!\".to_owned(),\n        };\n\n        client.show_message(params).await;\n    }\n}\n\nfn main() {\n    let executor = TokioTp::try_from(\u0026mut tokio::runtime::Builder::new())\n        .expect(\"failed to create thread pool\");\n\n    executor.block_on(\n        LanguageService::builder()\n            .server(Arc::new(Server))\n            .input(tokio::io::stdin().compat())\n            .output(tokio::io::stdout().compat_write())\n            .executor(executor.clone())\n            .build()\n            .listen(),\n    );\n}\n```\n\nMore examples can be found [here](examples).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatex-lsp%2Flanguage-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flatex-lsp%2Flanguage-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatex-lsp%2Flanguage-server/lists"}