Skip to content

Commit 08b4a7a

Browse files
committed
fix benchmark feature flags
1 parent 81667e1 commit 08b4a7a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

crates/xtask/src/main.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,17 +1324,12 @@ impl Xtasks {
13241324
) -> Result<Output> {
13251325
log::info!("Profiling enabled: {profile}");
13261326

1327-
let mut features = vec![
1328-
Feature::Lua54,
1329-
Feature::Rhai,
1330-
Feature::CoreFunctions,
1331-
Feature::BevyBindings,
1332-
];
1327+
let mut features = Features::default();
13331328

13341329
if profile {
13351330
std::env::set_var("ENABLE_PROFILING", "1");
13361331
// features.push(Feature::BevyTracy);
1337-
features.push(Feature::ProfileWithTracy);
1332+
features.0.insert(Feature::ProfileWithTracy);
13381333
} else {
13391334
std::env::set_var("RUST_LOG", "bevy_mod_scripting=error");
13401335
}
@@ -1347,7 +1342,7 @@ impl Xtasks {
13471342

13481343
let output = Self::run_workspace_command(
13491344
// run with just lua54
1350-
&app_settings.with_features(Features::new(features)),
1345+
&app_settings.with_features(features),
13511346
"bench",
13521347
"Failed to run benchmarks",
13531348
args,

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pub use bevy_mod_scripting_functions::*;
2828

2929
plugin_group! {
3030
pub struct BMSPlugin {
31-
:CoreScriptGlobalsPlugin,
3231
:ScriptFunctionsPlugin,
3332
:CoreScriptGlobalsPlugin,
3433
:BMSScriptingInfrastructurePlugin,

0 commit comments

Comments
 (0)