rust-analyzer README

The project's README from github.com/rust-lang/rust-analyzer. As one markdown file: README.md.

rust-analyzer logo

rust-analyzer is a language server that provides IDE functionality for writing Rust programs. You can use it with any editor that supports the Language Server Protocol (VS Code, Vim, Emacs, Zed, etc).

rust-analyzer features include go-to-definition, find-all-references, refactorings and code completion. rust-analyzer also supports integrated formatting (with rustfmt) and integrated diagnostics (with rustc and clippy).

Internally, rust-analyzer is structured as a set of libraries for analyzing Rust code. See Architecture in the manual.

codecov

Quick Start

https://rust-analyzer.github.io/book/installation.html

Documentation

If you want to contribute to rust-analyzer check out the CONTRIBUTING.md or if you are just curious about how things work under the hood, see the Contributing section of the manual.

If you want to use rust-analyzer's language server with your editor of choice, check the manual. It also contains some tips & tricks to help you be more productive when using rust-analyzer.

Security and Privacy

See the security and privacy sections of the manual.

Communication

For usage and troubleshooting requests, please use "IDEs and Editors" category of the Rust forum:

https://users.rust-lang.org/c/ide/14

For questions about development and implementation, join rust-analyzer working group on Zulip:

https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer

License

rust-analyzer is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

rust-analyzer (rust-lang/rust-analyzer)

Searching Database…

Что это такое?rust-analyzer — это language server, то есть сервер, который добавляет в редактор функции уровня IDE для работы с кодом на Rust: это «движок» понимания кода, который помогает вам, пока вы пишете на Rust.
Это отдельное приложение, которое я запускаю сам по себе, или то, что живёт внутри моего редактора?И то и другое не совсем: это не отдельное приложение и не редактор, а language server, к которому подключается ваш редактор. Внутри он и вовсе собран как набор библиотек для анализа кода на Rust.
Как запустить его в моём редакторе?README отсылает к руководству: там есть инструкции по установке для любого редактора на ваш выбор, а также советы и хитрости, как работать с rust-analyzer продуктивнее.
С какими редакторами его можно использовать?С любым редактором, который поддерживает Language Server Protocol — в README среди прочих названы VS Code, Vim, Emacs и Zed.
rust-analyzer — это официальный проект Rust или сторонний инструмент?Он разрабатывается под официальной организацией rust-lang на GitHub, существует с декабря 2017 года и набрал около 16,9 тыс. звёзд; в репозитории есть CI и процессы фаззинга.
Почему его называют фронтендом компилятора — он заменяет rustc?Нет. «Фронтенд» здесь означает, что он разбирает и анализирует код на Rust так же, как это делал бы компилятор, но результат — интеллектуальная поддержка для вашего редактора, а не скомпилированные бинарники; диагностику по-прежнему дают rustc и clippy.
Creator
rust-lang
Size
123.7 MB
Stars
16.9K
Age
8y
Commits · 90 Days