Skip to content

Commit 6259319

Browse files
committed
add rhai to ci matrix
1 parent 8b86ec2 commit 6259319

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/xtask/src/main.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@ enum Feature {
4545
MluaSerialize,
4646
MluaMacros,
4747
MluaAsync,
48-
// Rhai
4948
// Rhai,
50-
49+
Rhai,
5150
// Rune
5251
// Rune,
5352
}
5453

5554
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, strum::EnumIter)]
5655
enum FeatureGroup {
5756
LuaExclusive,
58-
// RhaiExclusive,
57+
RhaiExclusive,
5958
// RuneExclusive,
6059
ForExternalCrate,
6160
BMSFeature,
@@ -65,7 +64,7 @@ impl FeatureGroup {
6564
fn default_feature(self) -> Feature {
6665
match self {
6766
FeatureGroup::LuaExclusive => Feature::Lua54,
68-
// FeatureGroup::RhaiExclusive => Feature::Rhai,
67+
FeatureGroup::RhaiExclusive => Feature::Rhai,
6968
// FeatureGroup::RuneExclusive => Feature::Rune,
7069
_ => panic!("No default feature for non-exclusive group"),
7170
}
@@ -74,7 +73,7 @@ impl FeatureGroup {
7473
fn is_exclusive(self) -> bool {
7574
matches!(
7675
self,
77-
FeatureGroup::LuaExclusive // | FeatureGroup::RhaiExclusive | FeatureGroup::RuneExclusive
76+
FeatureGroup::LuaExclusive | FeatureGroup::RhaiExclusive // | FeatureGroup::RuneExclusive
7877
)
7978
}
8079
}
@@ -93,7 +92,7 @@ impl IntoFeatureGroup for Feature {
9392
| Feature::Luajit
9493
| Feature::Luajit52
9594
| Feature::Luau => FeatureGroup::LuaExclusive,
96-
// Feature::Rhai => FeatureGroup::RhaiExclusive,
95+
Feature::Rhai => FeatureGroup::RhaiExclusive,
9796
// Feature::Rune => FeatureGroup::RuneExclusive,
9897
Feature::MluaAsync
9998
| Feature::MluaMacros

0 commit comments

Comments
 (0)