rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Add `cfg(rust_analyzer)` to docs book?

Open A4-Tacks opened this issue 1 month ago • 3 comments

I noticed that rust-analyzer handles cfg(rust_analyzer). Can we explain this in the documentation?

If possible, should we add it to the cargo? https://github.com/rust-lang/cargo/issues/16310

A4-Tacks avatar Nov 28 '25 12:11 A4-Tacks

I think we shouldn't encourage usage of it.

flodiebold avatar Nov 28 '25 12:11 flodiebold

I think we should collectively as a team decide what r-a attributes we want to stabilize (we have #[rust_analyzer::skip], #[rust_analyzer::do_not_complete], #[cfg(rust_analyzer)] and maybe more) and then clearly document them.

<half-joke> do you think we should have a FCP process?

ChayimFriedman2 avatar Nov 28 '25 12:11 ChayimFriedman2

I'm not sure if these are suitable, so I opened an issue

A4-Tacks avatar Nov 28 '25 13:11 A4-Tacks