IyesGames/iyes_loopless

Compile failure when default features are turned off

martintrumann opened this issue · 1 comments

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.

This should be fixed now IIRC.