@rustlang question: I have a feature behind a feature flag, and I want to disable its tests when the feature flag is disabled. But it seems test modules don't see the feature flag attribute. Is there a way to conditionally compile out the tests based on the flag?
-
-
Doh, it’s totally my fault, it’s a nested crate inside the test directory tree

-
We did it, team! \o/
End of conversation
New conversation -
-
-
Also make sure you're passing --feature whatever to the cargo test command. Not enough to just build with that :)
-
i used to forget this *alllll the time*
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.