Is there a way to detect RA via a
I would like to hide some
use statements that cause problems for RA
Which ones cause issues?
I have two crate features which are mutually exclusive
and I want that to be an error if a downstream crate tries to enable both features, but I don't want RA to complain about it whilst I'm developing the crate
You could do something like that once https://github.com/rust-analyzer/rust-analyzer/pull/6099 lands I think
By having RA always set a specific env var
rust-analyzer.cargo.allFeatures is disabled these days, shouldn't it avoid that issue?
I would still like RA to run on both features though
I just want to disable the conflicting
I suppose I could add a feature for RA
and cfg on that
Yeah, adding a feature is the way to go.
Should have designed the language such that cfg-ing happens during monomorphisation, but that ship has sailed :)