{"id":46802014,"url":"https://github.com/tower-lsp-community/tower-lsp-server","last_synced_at":"2026-03-10T06:03:25.061Z","repository":{"id":260652851,"uuid":"881932456","full_name":"tower-lsp-community/tower-lsp-server","owner":"tower-lsp-community","description":"Language Server Protocol implementation for Rust based on Tower","archived":false,"fork":false,"pushed_at":"2025-12-07T10:32:28.000Z","size":833,"stargazers_count":159,"open_issues_count":7,"forks_count":16,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-22T13:13:31.122Z","etag":null,"topics":["language-server","lsp","rust","tower"],"latest_commit_sha":null,"homepage":"https://docs.rs/tower-lsp-server","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tower-lsp-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-01T14:20:01.000Z","updated_at":"2026-01-20T03:33:17.000Z","dependencies_parsed_at":"2024-11-01T16:28:18.133Z","dependency_job_id":null,"html_url":"https://github.com/tower-lsp-community/tower-lsp-server","commit_stats":null,"previous_names":["tower-lsp/tower-lsp","tower-lsp-community/tower-lsp-server"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tower-lsp-community/tower-lsp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tower-lsp-community%2Ftower-lsp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tower-lsp-community%2Ftower-lsp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tower-lsp-community%2Ftower-lsp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tower-lsp-community%2Ftower-lsp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tower-lsp-community","download_url":"https://codeload.github.com/tower-lsp-community/tower-lsp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tower-lsp-community%2Ftower-lsp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","lsp","rust","tower"],"created_at":"2026-03-10T06:03:19.966Z","updated_at":"2026-03-10T06:03:25.046Z","avatar_url":"https://github.com/tower-lsp-community.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tower-lsp-server\n\n[![CI][ci-badge]][ci-url]\n[![Crates.io][crates-badge]][crates-url]\n[![Documentation][docs-badge]][docs-url]\n[![Matrix room at #tower-lsp:wiro.world][matrix-badge]][matrix-url]\n\n[ci-badge]: https://github.com/tower-lsp-community/tower-lsp-server/actions/workflows/rust.yml/badge.svg?branch=main\n[ci-url]: https://github.com/tower-lsp-community/tower-lsp-server/actions\n[crates-badge]: https://img.shields.io/crates/v/tower-lsp-server.svg\n[crates-url]: https://crates.io/crates/tower-lsp-server\n[docs-badge]: https://docs.rs/tower-lsp-server/badge.svg\n[docs-url]: https://docs.rs/tower-lsp-server\n[matrix-badge]: https://img.shields.io/badge/Matrix-%23tower--lsp%3Awiro.world-white?logo=matrix\n[matrix-url]: https://matrix.to/#/#tower-lsp:wiro.world\n\n*A community fork of [tower-lsp](https://github.com/ebkalderon/tower-lsp)*\n\n- [Usage](#usage)\n- [Projects using `tower-lsp-server`](#projects-using-tower-lsp-server)\n- [Ecosystem](#ecosystem)\n- [License](#license)\n\nSee also [`CHANGELOG.md`] (contains migration information), [`CONTRIBUTING.md`] and the [Code of conduct].\n\n[`CHANGELOG.md`]: https://github.com/tower-lsp-community/tower-lsp-server/blob/main/CHANGELOG.md\n[`CONTRIBUTING.md`]: https://github.com/tower-lsp-community/tower-lsp-server/blob/main/CONTRIBUTING.md\n[Code of conduct]: https://github.com/tower-lsp-community/tower-lsp-server/blob/main/CODE_OF_CONDUCT.md\n\n[Language Server Protocol] implementation for Rust based on [Tower].\n\n[language server protocol]: https://microsoft.github.io/language-server-protocol\n[tower]: https://github.com/tower-rs/tower\n\nTower is a simple and composable framework for implementing asynchronous services in Rust. Central to Tower is the [`Service`] trait, which provides the necessary abstractions for defining request/response clients and servers. Examples of protocols implemented using the `Service` trait include [`hyper`] for HTTP and [`tonic`] for gRPC.\n\n[`service`]: https://docs.rs/tower-service/\n[`hyper`]: https://docs.rs/hyper/\n[`tonic`]: https://docs.rs/tonic/\n\n`tower-lsp-server` provides a simple implementation of the Language Server Protocol (LSP) that makes it easy to write your own language server. It consists of three parts:\n\n- The `LanguageServer` trait which defines the behavior of your language server.\n- The asynchronous `LspService` delegate which wraps your language server\n  implementation and defines the behavior of the protocol.\n- A `Server` which spawns the `LspService` and processes requests and responses\n  over `stdio` or TCP.\n\nYou can check LSP specification coverage in [`FEATURE.md`](https://github.com/tower-lsp-community/tower-lsp-server/blob/main/FEATURES.md).\n\n# Usage\n\n## Minimal example\n\n```rust\nuse tower_lsp_server::jsonrpc::Result;\nuse tower_lsp_server::ls_types::*;\nuse tower_lsp_server::{Client, LanguageServer, LspService, Server};\n\n#[derive(Debug)]\nstruct Backend {\n    client: Client,\n}\n\nimpl LanguageServer for Backend {\n    async fn initialize(\u0026self, _: InitializeParams) -\u003e Result\u003cInitializeResult\u003e {\n        Ok(InitializeResult::default())\n    }\n\n    async fn initialized(\u0026self, _: InitializedParams) {\n        self.client\n            .log_message(MessageType::INFO, \"server initialized!\")\n            .await;\n    }\n\n    async fn shutdown(\u0026self) -\u003e Result\u003c()\u003e {\n        Ok(())\n    }\n}\n\n#[tokio::main]\nasync fn main() {\n    let stdin = tokio::io::stdin();\n    let stdout = tokio::io::stdout();\n\n    let (service, socket) = LspService::new(|client| Backend { client });\n    Server::new(stdin, stdout, socket).serve(service).await;\n}\n```\n\nSee more advanced [examples](https://github.com/tower-lsp-community/tower-lsp-server/tree/main/examples).\n\n## Using runtimes other than tokio\n\nBy default, `tower-lsp-server` is configured for use with `tokio`. Using `tower-lsp-server` with other runtimes requires disabling `default-features` and enabling the `runtime-agnostic` feature:\n\n```toml\n[dependencies.tower-lsp-server]\nversion = \"*\"\ndefault-features = false\nfeatures = [\"runtime-agnostic\"]\n```\n\n## Using proposed features\n\nYou can use enable proposed features in the [LSP Specification version 3.18](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/) by enabling the `proposed` Cargo crate feature. Note that there are no semver guarantees to the `proposed` features so there may be breaking changes between any type of version in the `proposed` features.\n\n# Projects using `tower-lsp-server`\n\n- [Biome](https://github.com/biomejs/biome)\n- [Oxc](https://github.com/oxc-project/oxc)\n- [Harper](https://github.com/Automattic/harper)\n- [Polarity](https://github.com/polarity-lang/polarity/): both for their language server and their [interactive web demo](https://polarity-lang.github.io).\n- [Deno](https://github.com/denoland/deno/tree/main/cli/lsp) (still uses the original project)\n- [Turborepo](https://github.com/vercel/turborepo/tree/main/crates/turborepo-lsp) (still uses the original project)\n- [Veryl](https://github.com/veryl-lang/veryl)\n- [django-language-server](https://github.com/joshuadavidthomas/django-language-server)\n- [pytest-language-server](https://github.com/bellini666/pytest-language-server)\n- [SystemD-LSP](https://github.com/JFryy/systemd-lsp)\n- [Amber LSP](https://github.com/amber-lang/amber-lsp)\n\n# Ecosystem\n\n- [tower-lsp-boilerplate](https://github.com/IWANABETHATGUY/tower-lsp-boilerplate) - Useful GitHub project template which makes writing new language servers easier. This is made for the original project but should be straight forward to adapt. Issue [#23](https://github.com/tower-lsp-community/tower-lsp-server/issues/23) proposes to host a similar project within the organization\n\n# License\n\n`tower-lsp-server` is free and open source software distributed under the terms of either the [MIT](LICENSE-MIT) or the [Apache 2.0](LICENSE-APACHE) license, at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftower-lsp-community%2Ftower-lsp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftower-lsp-community%2Ftower-lsp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftower-lsp-community%2Ftower-lsp-server/lists"}