Say I have crate A, B and I want to share a test helper function helper() in crate A to crate B, so I use a feature test-utils:
#[cfg(feature="test-utils")]
pub fn helper(){
}
So the problem is since the helper function contains modification of sensitive data in A, I don't want this function to be compiled in production, such as cargo build --all-features.
Is there a way I can enable this feature only in test, and disable it in production?