File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -109,22 +109,24 @@ use cfg_if::cfg_if;
109
109
cfg_if ! {
110
110
if #[ cfg( target_feature = "atomics" ) ] {
111
111
/// Contains a thread-safe version of this crate, with Futures 0.1
112
- pub mod atomics;
112
+ mod atomics;
113
113
114
114
/// Polyfill for `Atomics.waitAsync` function
115
115
mod polyfill;
116
116
117
117
pub use atomics:: * ;
118
- } else if #[ cfg( feature = "futures_0_3" ) ] {
118
+ } else {
119
+ mod stable;
120
+ pub use stable:: * ;
121
+ }
122
+ }
123
+
124
+ #[ cfg( feature = "futures_0_3" ) ]
125
+ cfg_if ! {
126
+ if #[ cfg( target_feature = "atomics" ) ] {
127
+ compile_error!( "futures 0.3 support is not implemented with atomics yet" ) ;
128
+ } else {
119
129
/// Contains a Futures 0.3 implementation of this crate.
120
130
pub mod futures_0_3;
121
-
122
- /// Contains stable version of the crate
123
- pub mod stable;
124
- pub use stable:: * ;
125
- } else {
126
- /// Contains stable version of the crate
127
- pub mod stable;
128
- pub use stable:: * ;
129
131
}
130
132
}
You can’t perform that action at this time.
0 commit comments