In my project I have root crate (bin) and some external libraries I use to split code. When I tried to use #[cfg(feature = "foo")]
to compile conditionally, it appeared that bin and lib crates don't share features passed to cargo build.
How can my binary package and dependent libs use the same set of features passed to cargo
at compile time?