We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3d672 commit 1ecaeb2Copy full SHA for 1ecaeb2
2 files changed
.changes/fix-config-features.md
@@ -0,0 +1,6 @@
1
+---
2
+"cli.rs": patch
3
+"cli.js": patch
4
5
+
6
+Fixes injection of Cargo features defined in the configuration file.
tooling/cli/src/build.rs
@@ -157,9 +157,10 @@ pub fn command(mut options: Options) -> Result<()> {
157
options.runner = config_.build.runner.clone();
158
}
159
160
- if let Some(list) = options.features.as_mut() {
161
- list.extend(config_.build.features.clone().unwrap_or_default());
162
- }
+ options
+ .features
+ .get_or_insert(Vec::new())
163
+ .extend(config_.build.features.clone().unwrap_or_default());
164
165
let bin_path = app_settings.app_binary_path(&interface_options)?;
166
let out_dir = bin_path.parent().unwrap();
0 commit comments