Check during runtime if app was built with a specific feature

How to check during runtime for that?
I've tried:

 #[cfg(features = "feature_A")]
        {
println!("Feature A enabled");
        }

And:

if cfg!(features = "feature_A")
{
println!("Feature A enabled");
}

But those don't work...
What is the correct way to achieve the result?
Thank you

OK, I just got it. It needs to be feature not features...
Somewhat confusing when during build the features flag is used...

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.