diff --git a/src/lib.rs b/src/lib.rs index 73a6147773f..b4e5a6a9b1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,14 +6,17 @@ //! interface. #![no_std] +#![cfg_attr(wasm_bindgen_unstable_test_coverage, feature(coverage_attribute))] #![cfg_attr( - wasm_bindgen_unstable_test_coverage, - feature(coverage_attribute, allow_internal_unstable), - allow(internal_features) + all(not(feature = "std"), target_feature = "atomics"), + feature(thread_local) )] #![cfg_attr( - all(not(feature = "std"), target_feature = "atomics"), - feature(thread_local, allow_internal_unstable), + any( + all(not(feature = "std"), target_feature = "atomics"), + wasm_bindgen_unstable_test_coverage + ), + feature(allow_internal_unstable), allow(internal_features) )] #![allow(coherence_leak_check)]