mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(cli): inject config feature flags when features arg is not provided
This commit is contained in:
6
.changes/fix-config-features.md
Normal file
6
.changes/fix-config-features.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Fixes injection of Cargo features defined in the configuration file.
|
||||
@@ -157,9 +157,10 @@ pub fn command(mut options: Options) -> Result<()> {
|
||||
options.runner = config_.build.runner.clone();
|
||||
}
|
||||
|
||||
if let Some(list) = options.features.as_mut() {
|
||||
list.extend(config_.build.features.clone().unwrap_or_default());
|
||||
}
|
||||
options
|
||||
.features
|
||||
.get_or_insert(Vec::new())
|
||||
.extend(config_.build.features.clone().unwrap_or_default());
|
||||
|
||||
let bin_path = app_settings.app_binary_path(&interface_options)?;
|
||||
let out_dir = bin_path.parent().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user