IyesGames / iyes_loopless

Alternatives to Bevy States, FixedTimestep, Run Criteria, that do not use "stage looping" and are composable
Other
249 stars 27 forks source link

Compile failure when default features are turned off #34

Closed martintrumann closed 2 years ago

martintrumann commented 2 years ago

When trying to compile the crate without default features this error shows up.

  --> iyes_loopless/src/lib.rs:13:20
13 |     pub use crate::state::schedule::ScheduleLooplessStateExt;
   |                    ^^^^^ could not find `state` in the crate root

The #cfg(feature = "app") in lib.rs only applies to the first import. So the socond one gets included even if app isn't enabled. Also the app feature should depend on the states feature because the crate also does not compile when only app is enabled.

inodentry commented 2 years ago

This should be fixed now IIRC.