@@ -45,17 +45,16 @@ enum Feature {
45
45
MluaSerialize ,
46
46
MluaMacros ,
47
47
MluaAsync ,
48
- // Rhai
49
48
// Rhai,
50
-
49
+ Rhai ,
51
50
// Rune
52
51
// Rune,
53
52
}
54
53
55
54
#[ derive( Debug , Clone , Copy , Hash , PartialEq , Eq , strum:: EnumIter ) ]
56
55
enum FeatureGroup {
57
56
LuaExclusive ,
58
- // RhaiExclusive,
57
+ RhaiExclusive ,
59
58
// RuneExclusive,
60
59
ForExternalCrate ,
61
60
BMSFeature ,
@@ -65,7 +64,7 @@ impl FeatureGroup {
65
64
fn default_feature ( self ) -> Feature {
66
65
match self {
67
66
FeatureGroup :: LuaExclusive => Feature :: Lua54 ,
68
- // FeatureGroup::RhaiExclusive => Feature::Rhai,
67
+ FeatureGroup :: RhaiExclusive => Feature :: Rhai ,
69
68
// FeatureGroup::RuneExclusive => Feature::Rune,
70
69
_ => panic ! ( "No default feature for non-exclusive group" ) ,
71
70
}
@@ -74,7 +73,7 @@ impl FeatureGroup {
74
73
fn is_exclusive ( self ) -> bool {
75
74
matches ! (
76
75
self ,
77
- FeatureGroup :: LuaExclusive // | FeatureGroup::RhaiExclusive | FeatureGroup::RuneExclusive
76
+ FeatureGroup :: LuaExclusive | FeatureGroup :: RhaiExclusive // | FeatureGroup::RuneExclusive
78
77
)
79
78
}
80
79
}
@@ -93,7 +92,7 @@ impl IntoFeatureGroup for Feature {
93
92
| Feature :: Luajit
94
93
| Feature :: Luajit52
95
94
| Feature :: Luau => FeatureGroup :: LuaExclusive ,
96
- // Feature::Rhai => FeatureGroup::RhaiExclusive,
95
+ Feature :: Rhai => FeatureGroup :: RhaiExclusive ,
97
96
// Feature::Rune => FeatureGroup::RuneExclusive,
98
97
Feature :: MluaAsync
99
98
| Feature :: MluaMacros
0 commit comments