File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 58
58
uses : actions-rs/cargo@v1
59
59
with :
60
60
command : check
61
- args : --no-default-features --features no-std
61
+ args : --no-default-features --features alloc
62
62
63
63
- name : check attributes
64
64
uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ std = [
44
44
" once_cell" ,
45
45
" pin-utils" ,
46
46
" slab" ,
47
- " no-std " ,
47
+ " alloc " ,
48
48
]
49
- no-std = [
49
+ alloc = [
50
50
" futures-core" ,
51
51
" pin-project-lite" ,
52
52
]
Original file line number Diff line number Diff line change 46
46
//! [`Future::race`]: trait.Future.html#method.race
47
47
//! [`Future::try_race`]: trait.Future.html#method.try_race
48
48
49
- cfg_no_std ! {
49
+ cfg_alloc ! {
50
50
pub use future:: Future ;
51
51
pub ( crate ) mod future;
52
52
}
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ pub use async_attributes::{main, test};
241
241
#[ cfg( feature = "std" ) ]
242
242
mod macros;
243
243
244
- cfg_no_std ! {
244
+ cfg_alloc ! {
245
245
pub mod task;
246
246
pub mod future;
247
247
pub mod stream;
Original file line number Diff line number Diff line change 117
117
//! [`task_local!`]: ../macro.task_local.html
118
118
//! [`with`]: struct.LocalKey.html#method.with
119
119
120
- cfg_no_std ! {
120
+ cfg_alloc ! {
121
121
#[ doc( inline) ]
122
122
pub use core:: task:: { Context , Poll , Waker } ;
123
123
pub use ready:: ready;
Original file line number Diff line number Diff line change 1
- #[ cfg( feature = "no-std " ) ]
1
+ #[ cfg( feature = "alloc " ) ]
2
2
extern crate alloc;
3
3
4
- #[ cfg( feature = "no-std " ) ]
4
+ #[ cfg( feature = "alloc " ) ]
5
5
use alloc:: string:: String ;
6
6
7
7
/// Calls a function and aborts if it panics.
@@ -173,10 +173,10 @@ macro_rules! cfg_std {
173
173
/// Declares no-std items.
174
174
#[ allow( unused_macros) ]
175
175
#[ doc( hidden) ]
176
- macro_rules! cfg_no_std {
176
+ macro_rules! cfg_alloc {
177
177
( $( $item: item) * ) => {
178
178
$(
179
- #[ cfg( feature = "no-std " ) ]
179
+ #[ cfg( feature = "alloc " ) ]
180
180
$item
181
181
) *
182
182
}
You can’t perform that action at this time.
0 commit comments