File tree 6 files changed +5
-27
lines changed
6 files changed +5
-27
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ matrix:
25
25
26
26
# When updating this, the reminder to update the minimum required version in README.md.
27
27
- name : cargo test (minimum required version)
28
- rust : nightly-2019-04-13
28
+ rust : nightly-2019-04-14
29
29
30
30
- name : cargo clippy
31
31
rust : nightly
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Now, you can use futures-rs:
39
39
use futures :: future :: Future ; // Note: It's not `futures_preview`
40
40
```
41
41
42
- The current version of futures-rs requires Rust nightly 2019-02-15 or later.
42
+ The current version of futures-rs requires Rust nightly 2019-04-14 or later.
43
43
44
44
### Feature ` std `
45
45
Original file line number Diff line number Diff line change 2
2
3
3
#![ feature( futures_api) ]
4
4
#![ cfg_attr( feature = "cfg-target-has-atomic" , feature( cfg_target_has_atomic) ) ]
5
- #![ cfg_attr( all( feature = "alloc" , not( feature = "std" ) ) , feature( alloc) ) ]
6
5
7
6
#![ cfg_attr( not( feature = "std" ) , no_std) ]
8
7
13
12
#[ cfg( all( feature = "cfg-target-has-atomic" , not( feature = "nightly" ) ) ) ]
14
13
compile_error ! ( "The `cfg-target-has-atomic` feature requires the `nightly` feature as an explicit opt-in to unstable features" ) ;
15
14
16
- #[ cfg( all( feature = "alloc" , not( any( feature = "std" , feature = "nightly" ) ) ) ) ]
17
- compile_error ! ( "The `alloc` feature without `std` requires the `nightly` feature active to explicitly opt-in to unstable features" ) ;
18
-
19
- #[ cfg( all( feature = "alloc" , not( feature = "std" ) ) ) ]
15
+ #[ cfg( feature = "alloc" ) ]
20
16
extern crate alloc;
21
- #[ cfg( feature = "std" ) ]
22
- extern crate std as alloc;
23
17
24
18
pub mod future;
25
19
#[ doc( hidden) ] pub use self :: future:: { Future , FusedFuture , TryFuture } ;
Original file line number Diff line number Diff line change 8
8
#![ doc( html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.13/futures_sink" ) ]
9
9
10
10
#![ feature( futures_api) ]
11
- #![ cfg_attr( all( feature = "alloc" , not( feature = "std" ) ) , feature( alloc) ) ]
12
11
13
- #[ cfg( all( feature = "alloc" , not( any( feature = "std" , feature = "nightly" ) ) ) ) ]
14
- compile_error ! ( "The `alloc` feature without `std` requires the `nightly` feature active to explicitly opt-in to unstable features" ) ;
15
-
16
- #[ cfg( all( feature = "alloc" , not( feature = "std" ) ) ) ]
12
+ #[ cfg( feature = "alloc" ) ]
17
13
extern crate alloc;
18
- #[ cfg( feature = "std" ) ]
19
- extern crate std as alloc;
20
14
21
15
use futures_core:: task:: { Context , Poll } ;
22
16
use core:: pin:: Pin ;
Original file line number Diff line number Diff line change 5
5
#![ cfg_attr( feature = "alloc" , feature( box_into_pin) ) ]
6
6
#![ cfg_attr( feature = "std" , feature( async_await, await_macro) ) ]
7
7
#![ cfg_attr( feature = "cfg-target-has-atomic" , feature( cfg_target_has_atomic) ) ]
8
- #![ cfg_attr( all( feature = "alloc" , not( feature = "std" ) ) , feature( alloc) ) ]
9
8
10
9
#![ cfg_attr( not( feature = "std" ) , no_std) ]
11
10
#![ warn( missing_docs, missing_debug_implementations, rust_2018_idioms) ]
15
14
#[ cfg( all( feature = "cfg-target-has-atomic" , not( feature = "nightly" ) ) ) ]
16
15
compile_error ! ( "The `cfg-target-has-atomic` feature requires the `nightly` feature as an explicit opt-in to unstable features" ) ;
17
16
18
- #[ cfg( all( feature = "alloc" , not( any( feature = "std" , feature = "nightly" ) ) ) ) ]
19
- compile_error ! ( "The `alloc` feature without `std` requires the `nightly` feature active to explicitly opt-in to unstable features" ) ;
20
-
21
- #[ cfg( all( feature = "alloc" , not( feature = "std" ) ) ) ]
17
+ #[ cfg( feature = "alloc" ) ]
22
18
extern crate alloc;
23
- #[ cfg( feature = "std" ) ]
24
- extern crate std as alloc;
25
19
26
20
#[ macro_use]
27
21
mod macros;
Original file line number Diff line number Diff line change 23
23
24
24
#![ feature( futures_api) ]
25
25
#![ cfg_attr( feature = "cfg-target-has-atomic" , feature( cfg_target_has_atomic) ) ]
26
- #![ cfg_attr( all( feature = "alloc" , not( feature = "std" ) ) , feature( alloc) ) ]
27
26
28
27
#![ cfg_attr( not( feature = "std" ) , no_std) ]
29
28
34
33
#[ cfg( all( feature = "cfg-target-has-atomic" , not( feature = "nightly" ) ) ) ]
35
34
compile_error ! ( "The `cfg-target-has-atomic` feature requires the `nightly` feature as an explicit opt-in to unstable features" ) ;
36
35
37
- #[ cfg( all( feature = "alloc" , not( any( feature = "std" , feature = "nightly" ) ) ) ) ]
38
- compile_error ! ( "The `alloc` feature without `std` requires the `nightly` feature active to explicitly opt-in to unstable features" ) ;
39
-
40
36
#[ doc( hidden) ] pub use futures_util:: core_reexport;
41
37
42
38
#[ doc( hidden) ] pub use futures_core:: future:: Future ;
You can’t perform that action at this time.
0 commit comments