Hacker GitHub

← All repos

rust-lang/rust-analyzer

View on GitHub ↗ ★ 16,964 Rust

A Rust compiler front-end for IDEs

48 mentions on Hacker News by 41 people: 6 stories, 42 comments · first 2018-12-17 · latest 2026-10-06

Mentions per year 48 mentions · busiest year 2021 (10)
20082026
  1. …milliseconds. > Sounds like the author’s experience is strictly in Python. Er [1], no [2]. [1] https://github.com/rust-lang/rust-analyzer [2] https://github.com/tigerbeetle/tigerbeetle
    comment by thadt · 2026-10-06 · in Benchmark in Milliseconds
  2. We're still working on it! The last release had https://github.com/rust-lang/rust-analyzer/pull/23079 which is a significant savings, and I already have more baking (some even have a PR). We're also working to resolve the issues with…
    comment by afdbcreid · 2026-08-25 · in Rust Glancer: Rust LSP using 100x less RAM
  3. …prompting llvm to generate the right code! [1] https://github.com/intellij-rust/intellij-rust [2] https://github.com/rust-analyzer/rust-analyzer [3] https://github.com/tigerbeetle/tigerbeetle/
    comment by matklad · 2025-06-26 · in RSS Server Side Reader
  4. …also note that the rust-analyzer parser is considerably closer to DoD than the rustc parser is: https://github.com/rust-lang/rust-analyzer/tree/a642aa8023be...
    comment by sestep · 2025-06-13 · in Rust compiler performance
  5. There is a longer overview of it here: https://github.com/rust-lang/rust-analyzer/blob/master/docs/...
  6. Rust-analyzer uses a similar technique for parsing https://github.com/rust-lang/rust-analyzer/blob/master/crate... which then gets fed into https://github.com/rust-analyzer/rowan (lossless syntax tree)
  7. Also see e.g. https://github.com/rust-lang/rust-analyzer/issues/14375
    comment by actionfromafar · 2025-01-07 · in Zig's comptime is bonkers good
  8. …raw numbers would make you think. rust-analyzer has a bunch of advanced functionality (term search https://github.com/rust-lang/rust-analyzer/pull/16092 and refactors), assists (nearly 20% of rust-analyzer!) and tests. > I think there…
    comment by thramp · 2024-09-07 · in LSP: The good, the bad, and the ugly
  9. …or 3rd party ppl who wanted to create tools https://ericlippert.com/2012/06/08/red-green-trees/ https://github.com/rust-lang/rust-analyzer/blob/master/docs/... https://stackoverflow.com/questions/8921782/what-are-the-ben...
    comment by high_na_euv · 2024-08-15 · in The official Elixir Language Server team
  10. …https://en.wikipedia.org/wiki/Language_Server_Protocol vs initial Date: 2017-12-21 22:25:45 +0300 — https://github.com/rust-lang/rust-analyzer/commit/a63222cd24...
  11. …forward to parallel front-end[3], but I have not seen any improvement for these small changes. [0] https://github.com/rust-lang/rust-analyzer [1] https://github.com/gleam-lang/gleam [2] https://github.com/hashicorp/terraform [3]…
    comment by ad-ops · 2024-03-18 · in Cranelift code generation comes to Rust
  12. …what VS Code does. This is not true since LSPs can add extensions to the existing API. For example: https://github.com/rust-lang/rust-analyzer/blob/master/docs/... > If you create an LSP, it will work best in VS Code. Any editor can work…
    comment by samfundev · 2023-10-12 · in How LSP could have been better
  13. …of custom extensions. Here's how "query type of the selected expression" works, for example: https://github.com/rust-lang/rust-analyzer/blob/master/docs/...
    comment by matklad · 2023-10-12 · in How LSP could have been better
  14. …However, from what I understand it seems to supply just a parser separate from the Rust compiler ( https://github.com/rust-lang/rust-analyzer/tree/master/crate... ) trying to keep up with Rust‘s development. So, in principle, it could have…
    comment by G3rn0ti · 2023-09-08 · in What's new in Emacs 29.1
  15. …writing code, even with something as simple as the vec![] macro. I reported one such case here: https://github.com/rust-lang/rust-analyzer/issues/12524 , but this still happens to me pretty frequently.
    comment by thurn · 2023-07-11 · in IntelliJ Rust
  16. …I mean, disk space is cheap). Re: cranelift, I gotta check that out! Thanks for the reminder! [0] https://github.com/rust-lang/rust-analyzer/issues/6007#issue...
    comment by davidatbu · 2023-04-29 · in Emerging Rust GUI libraries in a WASM world
  17. I filed a issue on `rust-analyzer` and apparently it is by design - https://github.com/rust-lang/rust-analyzer/issues/14375
  18. …C++). There are also some community-maintained OSS SCIP indexers. - rust-analyzer: https://sourcegraph.com/github.com/rust-lang/rust-analyzer/-... - scip-zig: https://github.com/zigtools/scip-zig
    comment by typesanitizer · 2023-02-07 · in The technology behind GitHub’s new code search
  19. …totally wrong. Thanks for the correction. Looks like it was planned but never implemented (yet): https://github.com/rust-lang/rust-analyzer/issues/10765
  20. …with rowan trees. === end quote === [1] https://matklad.github.io/2022/04/25/why-lsp.html [2] https://github.com/rust-lang/rust-analyzer/blob/master/docs/...
  21. …link are used specifically to ensure correct handling of Rust multi-level breaks work syntax, like https://github.com/rust-lang/rust-analyzer/blob/master/crate... , https://github.com/rust-lang/rustfmt/blob/master/tests/sourc... ,…
    comment by eesmith · 2022-09-04 · in Python multi-level break and continue
  22. …However, this breaks rust-analyzer's ability to rename variables [1]. [1]: https://github.com/rust-lang/rust-analyzer/issues/11260#
    comment by shepmaster · 2022-06-07 · in Maud: A Rust macro for writing HTML
  23. …hand you can't create dependency cycles. For a workspace setup look at for example Rust-Analyzer: https://github.com/rust-analyzer/rust-analyzer/blob/master/C...
    comment by Gwypaas · 2022-03-15 · in Ask HN: What's the Deal with HN and Rust?
  24. …extensions rely on drastically different language primitives absent from most other languages. eg. https://github.com/rust-analyzer/rust-analyzer/blob/master/d... Rust has a built-in macro marker for tests. I suspect rust-analyzer uses…
    comment by petr_tik · 2022-02-21 · in Rust-analyzer joins the Rust organization
  25. The list of language server protocol extensions it uses is interesting: https://github.com/rust-analyzer/rust-analyzer/blob/master/d... I'm pleased to see they're filing issues upstream about them: I think there's some risk that LSP is…
    comment by mjw1007 · 2022-02-21 · in Rust-analyzer joins the Rust organization
  26. …worked on with Chalk but it's quite jarring coming from Java and C#. edit: here's the GitHub thread https://github.com/rust-analyzer/rust-analyzer/issues/4558
  27. …or IntelliJ Rust [2]. Personally, I use `rust-analyzer` with vscode as a bevy developer. [1]: https://github.com/rust-analyzer/rust-analyzer [2]: https://www.jetbrains.com/rust/
    comment by djmcnab · 2022-01-08 · in Bevy game engine 0.6
  28. Rust-analyzer uses Salsa - incremental computation library that uses memoization. https://github.com/rust-analyzer/rust-analyzer/blob/master/d...
  29. …[0] - https://github.com/tokio-rs/axum [1] - https://github.com/watchexec/cargo-watch [2] - https://github.com/rust-analyzer/rust-analyzer
    comment by dkryptr · 2021-10-27 · in My ideal Rust workflow
  30. Ah, thanks for the nudge. Looks like I had run into https://github.com/rust-analyzer/rust-analyzer/issues/6835 , had to bump the patch version of a library to fix.
    comment by rattray · 2021-06-06 · in Zero to Production in Rust
  31. We have something similar in https://github.com/rust-analyzer/rust-analyzer/blob/master/d... . An interesting systemsy difference is that missing style.md means more work for maintainers (as they need to do more cleanup), while missing…
    comment by matklad · 2021-02-06 · in Architecture.md
  32. FWIW, this should be relatively easy to implement. Looking at all the pieces which implement https://github.com/rust-analyzer/rust-analyzer/blob/master/d... should given enough knowledge to do this.
    comment by matklad · 2021-02-04 · in Rust-Analyzer Architecture
  33. …much much better in almost every possible way, and soon to be made the "official" rust LSP [0]. 0: https://github.com/rust-analyzer/rust-analyzer/issues/4224
    comment by ibraheemdev · 2021-02-04 · in Rust-Analyzer Architecture
  34. https://github.com/rust-analyzer/rust-analyzer is a good resource. I went there because I was surprised how good the project worked. I found some really great docs and learned quite a bit from the code.
    comment by mrits · 2020-10-26 · in Parsing Algorithms
  35. My understanding of rust-analyzer's internals are limited, but I believe https://github.com/rust-analyzer/rust-analyzer/blob/master/c... is what it does here; that is, it keeps track of the start and ending positions as it goes…
    comment by steveklabnik · 2020-09-17 · in My Favorite Rust Function Signature
  36. …to be proven wrong :p (rust-analyzer is working towards one[1], but it never worked for me) [1] https://github.com/rust-analyzer/rust-analyzer/pull/2698
  37. …it enables a great many people to send patches. Witness the number of contributors with <10 commits https://github.com/rust-analyzer/rust-analyzer/graphs/contri... If you want to increase adoption, please borrow as many dev experience…
    comment by petr_tik · 2020-08-13 · in Gitoxide: Pure Rust Implementation of Git
  38. > And it looks like a Rust language server exists: There are two, actually. That one, and https://github.com/rust-analyzer/rust-analyzer which is quickly supplanting it. The intention is that the compiler will eventually be a language…
  39. Could you please file a bug at github.com/rust-analyzer/rust-analyzer, describing your current situation and an outline of your project structure. Installing and running should be as easy as activating the plugin, or at least the error…
    comment by Argorak · 2020-04-27 · in Rust-analyzer – an IDE backend for Rust
  40. …will come to fruition in the short run. It’s something that rust could profit from in a decade. (1) https://github.com/rust-analyzer/rust-analyzer/blob/master/R...
  41. I can recommend https://tabnine.com/ with https://github.com/rust-analyzer/rust-analyzer . While rust-analyzer doesn't always resolve type (unlike Jetbrains Rust plugin, which always does but sometimes incorrectly), it still makes writing…
    comment by pzmarzly · 2019-05-15 · in Four Years of Rust
  42. …if you have any questions! [1]: https://github.com/matklad [2]: https://ferrous-systems.com [3]: https://github.com/rust-analyzer/rust-analyzer
    comment by jamesmunns · 2018-12-17 · in Rust Analyzer in 2018 and 2019