tower-lsp VS tower

Compare tower-lsp vs tower and see what are their differences.

tower-lsp

Language Server Protocol implementation written in Rust (by ebkalderon)

tower

async fn(Request) -> Result<Response, Error> (by tower-rs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
tower-lsp tower
7 14
895 3,255
- 2.5%
5.3 2.9
about 1 month ago 9 days ago
Rust Rust
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tower-lsp

Posts with mentions or reviews of tower-lsp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-28.
  • What's everyone working on this week (22/2023)?
    14 projects | /r/rust | 28 May 2023
    I am using nom / nom_locate to build the parser side because I've done a handful of other projects with it, and I plan to use tower-lsp to hook up the language server side.
  • State of the Ruby language server (LSP) ecosystem / looking for suggestions
    11 projects | /r/ruby | 2 Oct 2022
    I realize this might not be for everyone, but I'm writing it in Rust using Lib-ruby-parser and tower-lsp: two existing libraries that handle a bunch of the heavy lifting for me. I'm more productive in Rust than with Ruby at this point, despite doing Ruby full time for 15 years, plus I really really don't want to have to deal with a slow LSP--that was the whome impetus for this project. I started in the spring, made a bunch of headway, then backtracked to redo the internals to make it easier to handle monkeypatching, overriding/redefining of methods, etc. across your project.
  • Language Server Protocol
    3 projects | /r/Compilers | 21 Jul 2022
    https://github.com/ebkalderon/tower-lsp is a generalized LSP implementation in a lower-level language (Rust) so you may get a better idea by reading through that repo. It seems that the server opens a TCP socket that the client later connects to, but I'm not really sure.
  • tower_lsp client/server Document Sync
    1 project | /r/rust | 5 Jul 2022
    I was taking a look at the tower_lsp example here (https://github.com/ebkalderon/tower-lsp/blob/master/examples/stdio.rs) and had a question about how the document sync works between the client and the server.
  • how to make a lsp in rust ?
    8 projects | /r/rust | 20 May 2022
    Mine all use [tower-lsp](https://github.com/ebkalderon/tower-lsp/) for the LSP protocol stuff, and then either [Tree-sitter](https://github.com/tree-sitter/tree-sitter) or [Nom](https://github.com/Geal/nom). If I do another I'll probably try [Chumsky](https://github.com/zesterer/chumsky) which combines some of the advantages of both.
  • tower-lsp 0.16.0 — Lightweight framework for building LSP servers
    2 projects | /r/rust | 11 Mar 2022

tower

Posts with mentions or reviews of tower. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-07.
  • Collection of trait implementations with associated types (GATs?)
    1 project | /r/rust | 15 Feb 2023
    This question is partially inspired by this PR which is kinda trying to do the same thing.
  • dd-trace-layer - A web application middleware for sending Datadog's trace
    3 projects | /r/rust | 7 Oct 2022
    dd-trace-layer is a middleware for sending Datadog's trace. It's based on Tower and OpenTelemetry Rust.
  • GCP firestore and logging SDK in rust
    3 projects | /r/rust | 6 Oct 2022
    I'm pretty sure that GCP's APIs (unlike AWS, which uses Smithy for very genuinely, very good reason) are defined using Protobuf and can be communicated with over gRPC, which means that you don't need to bind via cxx to GCP's C++ APIs. Take a look at this example using Tonic. If you're to use Tonic, you'll also be able to use Tower's middleware (main crate, http-specific) to implement retries, timeouts, tracing, and all the other things you need to be production-ready.
  • Which Rust web framework to choose in 2022 (with code examples)
    7 projects | dev.to | 27 Sep 2022
    #[derive(Clone)] struct MyMiddleware { inner: S, } impl Service> for MyMiddleware where S: Service, Response = Response> + Clone + Send + 'static, S::Future: Send + 'static, { type Response = S::Response; type Error = S::Error; type Future = BoxFuture<'static, Result>; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { self.inner.poll_ready(cx) } fn call(&mut self, mut req: Request) -> Self::Future { println!("before"); // best practice is to clone the inner service like this // see https://github.com/tower-rs/tower/issues/547 for details let clone = self.inner.clone(); let mut inner = std::mem::replace(&mut self.inner, clone); Box::pin(async move { let res: Response = inner.call(req).await?; println!("after"); Ok(res) }) } } fn main() { let app = Router::new() .route("/", get(|| async { /* ... */ })) .layer(layer_fn(|inner| MyMiddleware { inner })); }
  • How to schedule and run cron jobs in Rust using apalis
    2 projects | dev.to | 14 Aug 2022
    For this tutorial, we're going to use apalis to run cron jobs in an async context. We will also look at how to decorate our jobs with tower middleware allowing us to unlock features like retries, prometheus, sentry etc
  • Warp or Rocket.rs or Actix Web?
    8 projects | /r/rust | 29 May 2022
    So I have now had a look at Axum and think I will give it a try. In the readme in the repository it says something about tower or tower::Service and tonic, what exactly is that? I do not understand that yet.
  • tower-lsp 0.16.0 — Lightweight framework for building LSP servers
    2 projects | /r/rust | 11 Mar 2022
    Better compatibility with tower ecosystem.
  • ratpack: a simpleton's HTTP framework
    6 projects | /r/rust | 24 Jan 2022
    ratpack is idealized in the simplicity of the sinatra (ruby) framework in its goal, and attempts to be an alternative to other async HTTP frameworks such as tower, warp, axum, and tide.
  • When and how to use traits?
    3 projects | /r/rust | 21 Aug 2021
    i would browse the standard library, tower, nom, or my own bitvec to see layout and trait/record separation. in particular, std::io and std::net may be of use: io::Read and io::Write are pervasive examples of implementing unixy file-descriptor-like behavior in the type system
  • I could use some help!
    2 projects | /r/learnrust | 15 Jul 2021
    We're not there yet. I keep an eye on Tower which looks promising to build on top of. And I keep an eye on MoonZoon (full stack framework, unashamedly opinionated!).

What are some alternatives?

When comparing tower-lsp and tower you can also consider the following projects:

kakoune-lsp - Kakoune Language Server Protocol Client

hyper - An HTTP library for Rust

rust-analyzer - A Rust compiler front-end for IDEs

tower-http - HTTP specific Tower utilities.

tree-sitter - An incremental parsing system for programming tools

bitvec - A crate for managing memory bit by bit

react-relay - Relay is a JavaScript framework for building data-driven React applications.

apalis - Simple, extensible multithreaded background job and message processing library for Rust

chumsky - Write expressive, high-performance parsers with ease.

Tide - Fast and friendly HTTP server framework for async Rust

url-mapper-rs - A simple URL Mapper service built using Rust

h2 - HTTP 2.0 client & server implementation for Rust.