tracing
tracing copied to clipboard
futures: fix tests not compiling on some feature combinations
Motivation
Previously, the tests for std::future
support were always compiled,
regardless of whether or not the std::future
feature was enabled. This
is because the tests were in the integration tests dir, and were not
feature flagged.
Additionally, when disabling the std
feature, tracing-futures
tests
will fail to compile, as the test support library depends on std
.
Solution
I've moved these tests into modules in the lib tests, so that they can only be compiled when the appropriate feature flags are enabled. I've also made some tweaks to the test support code to accommodate this.
I've also made the tests
module be conditional on the presence of the
std
feature. Ideally, we would be able to run tests for the subset of
functionality available on no-std
when the feature is disabled, but
there are some obstacles to doing this easily.
This fixes some of the issues described in #632.
Signed-off-by: Eliza Weisman [email protected]
Bump. Just ran into tracing-futures not compiling with --no-default-features
(when trying to verify I didn't break things with #1185).
Let's rebase and merge this one?
Closing this as I believe it's obsolete and the issue may have already been fixed separately.