feat: Add rust-analyzer.cargo.allTargets to configure passing --all-targets to cargo invocations

This commit is contained in:
Alexis (Poliorcetics) Bourget 2024-03-21 18:56:52 +01:00
parent 4b33850c39
commit 174af88e76
No known key found for this signature in database
5 changed files with 31 additions and 9 deletions

View file

@ -76,6 +76,8 @@ impl Default for CargoFeatures {
#[derive(Default, Clone, Debug, PartialEq, Eq)]
pub struct CargoConfig {
/// Whether to pass `--all-targets` to cargo invocations.
pub all_targets: bool,
/// List of features to activate.
pub features: CargoFeatures,
/// rustc target