bevy/crates/bevy_state/src
BigWingBeat ffe0f7f2ba
Fix compile error caused by incorrect feature flag in bevy_state (#14987)
# Objective

The `reflect` module in `bevy_state` is gated behind the `bevy_reflect`
feature, but the type exports from that module in the crate prelude are
erroneously gated behind the `bevy_app` feature, causing a compile error
when the `bevy_reflect` feature is disabled, but the `bevy_app` feature
is enabled.

## Solution

Change the feature gate to `bevy_reflect`.

## Testing

- Discovered by depending on `bevy_state` with `default-features =
false, features = ["bevy_app"]`
- Tested by running `cargo check -p bevy_state --no-default-features
--features bevy_app`
2024-08-30 18:57:08 +00:00
..
state Apply unused_qualifications lint (#14828) 2024-08-21 12:29:33 +00:00
app.rs Adding Reflect data types for States and FreelyMutableState. (#14643) 2024-08-08 00:07:00 +00:00
condition.rs remove inaccurate warning from in_state (#13862) 2024-06-16 16:06:45 +00:00
lib.rs Fix compile error caused by incorrect feature flag in bevy_state (#14987) 2024-08-30 18:57:08 +00:00
reflect.rs reflect: implement the unique reflect rfc (#7207) 2024-08-12 17:01:41 +00:00
state_scoped.rs impl Reflect + Clone for StateScoped (#14156) 2024-07-08 01:00:04 +00:00