Open akarpovskii opened 1 year ago
The core problem is that cargo metadata
lists both features as enabled. This is an issue of cargo's old feature resolver as explained in the RFC 2957 and seems to be fixed by its new resolver. However, cargo metadata
does not yet use the new resolver due to complexity. Not sure if we can do anything at our end for the time being unfortunately.
cc rust-lang/cargo#9863
When different targets use different features of a create, RA considers all of them active at the same time.
Cargo.toml:
main.rs:
This is how arguments in
spawn_async
are defined:rust-analyzer version: 0.3.1575-standalone
rustc version: 1.70.0 (90c541806 2023-05-31)
relevant settings: None