rust/src/tools/rust-analyzer
Martin Nordholts cde0cde151 Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=...
In the stabilization attempt of `#[unix_sigpipe = "sig_dfl"]`, a concern
was raised related to using a language attribute for the feature: Long
term, we want `fn lang_start()` to be definable by any crate, not just
libstd. Having a special language attribute in that case becomes
awkward.

So as a first step towards towards the next stabilization attempt, this
PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag
`-Zon-broken-pipe=...` to remove that concern, since now the language
is not "contaminated" by this feature.

Another point was also raised, namely that the ui should not leak
**how** it does things, but rather what the **end effect** is. The new
flag uses the proposed naming. This is of course something that can be
iterated on further before stabilization.
2024-05-02 19:48:29 +02:00
..
.cargo Merge commit '574e23ec50' into sync-from-ra 2024-03-10 08:47:38 +02:00
.github Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
.vscode Merge commit 'aa9bc86125' into sync-from-ra 2023-06-05 12:04:23 +03:00
assets Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
bench_data Merge commit 'aa9bc86125' into sync-from-ra 2023-06-05 12:04:23 +03:00
crates Change SIGPIPE ui from #[unix_sigpipe = "..."] to -Zon-broken-pipe=... 2024-05-02 19:48:29 +02:00
docs Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
editors/code Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
lib Merge commit '574e23ec50' into sync-from-ra 2024-03-10 08:47:38 +02:00
xtask Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
.editorconfig Merge commit 'a911652360' into sync-from-ra 2024-01-21 16:53:06 +02:00
.git-blame-ignore-revs Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
.gitattributes Fix .gitattributes for test_data 2022-07-24 14:05:35 +02:00
.gitignore Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
.typos.toml Merge commit '574e23ec50' into sync-from-ra 2024-03-10 08:47:38 +02:00
Cargo.lock Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
Cargo.toml Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
clippy.toml Merge commit 'ddf105b646' into sync-from-ra 2024-02-11 08:40:19 +02:00
CONTRIBUTING.md Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
LICENSE-APACHE Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
LICENSE-MIT Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
PRIVACY.md Add 'src/tools/rust-analyzer/' from commit '977e12a0bd' 2022-07-24 10:37:08 +02:00
README.md Merge commit '55d9a533b3' into sync-from-ra 2024-04-20 19:17:08 +03:00
rust-bors.toml Merge commit '3b7c7f97e4' into sync-from-ra 2023-11-08 08:15:03 +02:00
rustfmt.toml Merge commit '7219414e81' into sync-from-ra 2024-01-28 15:56:54 +02:00
triagebot.toml Merge commit '3b7c7f97e4' into sync-from-ra 2023-11-08 08:15:03 +02:00

rust-analyzer logo

rust-analyzer is a modular compiler frontend for the Rust language. It is a part of a larger rls-2.0 effort to create excellent IDE support for Rust.

Quick Start

https://rust-analyzer.github.io/manual.html#installation

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, check the ./docs/dev folder.

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

Security and Privacy

See the corresponding 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.