I got a rust project has the folder structure below:
adas-demo
|-- Cargo.toml
|
|-- opencv-utils
|-- Cargo.toml
Both parent crate and nested lib crate got the enable-debug
feature which I use to print out some debug info like below:
#[cfg(feature = "enable-debug")]
{
// ....
}
So, I run the project like this:
LOG_LEVEL=DEBUG \
SHOW_RENDER_WINDOW=true \
cargo watch --clear --exec 'run --features "enable-debug"'
But "enable-debug" feature doesn't apply to opencv-utils
, any easy way to solve this?