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.
When trying to compile the crate without default features this error shows up.
The
#cfg(feature = "app")
in lib.rs only applies to the first import. So the socond one gets included even ifapp
isn't enabled. Also theapp
feature should depend on thestates
feature because the crate also does not compile when onlyapp
is enabled.