File tree 4 files changed +11
-2
lines changed
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ matrix:
126
126
- cargo build --manifest-path futures/Cargo.toml
127
127
--target thumbv7m-none-eabi
128
128
--no-default-features
129
- --features nightly, alloc
129
+ --features alloc
130
130
131
131
- name : cargo check (futures-util)
132
132
rust : nightly
@@ -150,6 +150,7 @@ matrix:
150
150
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features
151
151
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features sink
152
152
- cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features alloc,sink
153
+ - cargo check --manifest-path futures-util/Cargo.toml --no-default-features --features nightly,async-await
153
154
154
155
- name : cargo doc
155
156
rust : nightly
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ name = "futures_util"
18
18
default = [" std" ]
19
19
std = [" alloc" , " futures-core-preview/std" , " slab" ]
20
20
alloc = [" futures-core-preview/alloc" ]
21
- async-await = [" std " ]
21
+ async-await = []
22
22
compat = [" std" , " futures_01" ]
23
23
io-compat = [" io" , " compat" , " tokio-io" ]
24
24
bench = []
Original file line number Diff line number Diff line change @@ -30,14 +30,17 @@ extern crate futures_core;
30
30
pub use futures_core:: ready;
31
31
pub use pin_utils:: pin_mut;
32
32
33
+ #[ cfg( feature = "std" ) ]
33
34
#[ cfg( feature = "async-await" ) ]
34
35
#[ macro_use]
35
36
#[ doc( hidden) ]
36
37
pub mod async_await;
38
+ #[ cfg( feature = "std" ) ]
37
39
#[ cfg( feature = "async-await" ) ]
38
40
#[ doc( hidden) ]
39
41
pub use self :: async_await:: * ;
40
42
43
+ #[ cfg( feature = "std" ) ]
41
44
#[ cfg( feature = "select-macro" ) ]
42
45
#[ doc( hidden) ]
43
46
pub mod rand_reexport { // used by select!
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ compile_error!("The `cfg-target-has-atomic` feature requires the `nightly` featu
67
67
// Macro reexports
68
68
pub use futures_core:: ready; // Readiness propagation
69
69
pub use futures_util:: pin_mut;
70
+ #[ cfg( feature = "std" ) ]
70
71
#[ cfg( feature = "async-await" ) ]
71
72
pub use futures_util:: { pending, poll} ; // Async-await
72
73
@@ -515,10 +516,12 @@ pub mod never {
515
516
516
517
// proc-macro re-export --------------------------------------
517
518
519
+ #[ cfg( feature = "std" ) ]
518
520
#[ cfg( feature = "async-await" ) ]
519
521
#[ doc( hidden) ]
520
522
pub use futures_util:: rand_reexport;
521
523
524
+ #[ cfg( feature = "std" ) ]
522
525
#[ cfg( feature = "async-await" ) ]
523
526
#[ doc( hidden) ]
524
527
pub mod inner_macro {
@@ -527,6 +530,7 @@ pub mod inner_macro {
527
530
pub use futures_util:: select;
528
531
}
529
532
533
+ #[ cfg( feature = "std" ) ]
530
534
#[ cfg( feature = "async-await" ) ]
531
535
futures_util:: document_join_macro! {
532
536
#[ macro_export]
@@ -550,6 +554,7 @@ futures_util::document_join_macro! {
550
554
}
551
555
}
552
556
557
+ #[ cfg( feature = "std" ) ]
553
558
#[ cfg( feature = "async-await" ) ]
554
559
futures_util:: document_select_macro! {
555
560
#[ macro_export]
You can’t perform that action at this time.
0 commit comments