Skip to content

Commit 7a66d99

Browse files
committed
Disable rust-analyzer.{cargo,checkOnSave}.allFeatures by default
1 parent 21132a7 commit 7a66d99

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/ra_project_model/src/cargo_workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Default for CargoConfig {
6464
fn default() -> Self {
6565
CargoConfig {
6666
no_default_features: false,
67-
all_features: true,
67+
all_features: false,
6868
features: Vec::new(),
6969
load_out_dirs_from_check: false,
7070
target: None,

crates/rust-analyzer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Default for Config {
122122
check: Some(FlycheckConfig::CargoCommand {
123123
command: "check".to_string(),
124124
all_targets: true,
125-
all_features: true,
125+
all_features: false,
126126
extra_args: Vec::new(),
127127
}),
128128

editors/code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
},
239239
"rust-analyzer.cargo.allFeatures": {
240240
"type": "boolean",
241-
"default": true,
241+
"default": false,
242242
"description": "Activate all available features"
243243
},
244244
"rust-analyzer.cargo.features": {
@@ -319,7 +319,7 @@
319319
},
320320
"rust-analyzer.checkOnSave.allFeatures": {
321321
"type": "boolean",
322-
"default": true,
322+
"default": false,
323323
"markdownDescription": "Check with all features (will be passed as `--all-features`)"
324324
},
325325
"rust-analyzer.inlayHints.enable": {

0 commit comments

Comments
 (0)