浏览代码

pass features thru to cargo on dx bundle (#2271)

Aron Puddy 1 年之前
父节点
当前提交
c799168666
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/cli/src/cli/bundle.rs

+ 4 - 0
packages/cli/src/cli/bundle.rs

@@ -86,6 +86,10 @@ impl Bundle {
             crate_config.extend_with_platform(platform);
             crate_config.extend_with_platform(platform);
         }
         }
 
 
+        if let Some(features) = self.build.features {
+            crate_config.set_features(features);
+        }
+
         // build the desktop app
         // build the desktop app
         // Since the `bundle()` function is only run for the desktop platform,
         // Since the `bundle()` function is only run for the desktop platform,
         // the `rust_flags` argument is set to `None`.
         // the `rust_flags` argument is set to `None`.