File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 5858 uses : actions-rs/cargo@v1
5959 with :
6060 command : check
61- args : --no-default-features --features no-std
61+ args : --no-default-features --features alloc
6262
6363 - name : check attributes
6464 uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ std = [
4444 " once_cell" ,
4545 " pin-utils" ,
4646 " slab" ,
47- " no-std " ,
47+ " alloc " ,
4848]
49- no-std = [
49+ alloc = [
5050 " futures-core" ,
5151 " pin-project-lite" ,
5252]
Original file line number Diff line number Diff line change 4646//! [`Future::race`]: trait.Future.html#method.race
4747//! [`Future::try_race`]: trait.Future.html#method.try_race
4848
49- cfg_no_std ! {
49+ cfg_alloc ! {
5050 pub use future:: Future ;
5151 pub ( crate ) mod future;
5252}
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ pub use async_attributes::{main, test};
241241#[ cfg( feature = "std" ) ]
242242mod macros;
243243
244- cfg_no_std ! {
244+ cfg_alloc ! {
245245 pub mod task;
246246 pub mod future;
247247 pub mod stream;
Original file line number Diff line number Diff line change 117117//! [`task_local!`]: ../macro.task_local.html
118118//! [`with`]: struct.LocalKey.html#method.with
119119
120- cfg_no_std ! {
120+ cfg_alloc ! {
121121 #[ doc( inline) ]
122122 pub use core:: task:: { Context , Poll , Waker } ;
123123 pub use ready:: ready;
Original file line number Diff line number Diff line change 1- #[ cfg( feature = "no-std " ) ]
1+ #[ cfg( feature = "alloc " ) ]
22extern crate alloc;
33
4- #[ cfg( feature = "no-std " ) ]
4+ #[ cfg( feature = "alloc " ) ]
55use alloc:: string:: String ;
66
77/// Calls a function and aborts if it panics.
@@ -173,10 +173,10 @@ macro_rules! cfg_std {
173173/// Declares no-std items.
174174#[ allow( unused_macros) ]
175175#[ doc( hidden) ]
176- macro_rules! cfg_no_std {
176+ macro_rules! cfg_alloc {
177177 ( $( $item: item) * ) => {
178178 $(
179- #[ cfg( feature = "no-std " ) ]
179+ #[ cfg( feature = "alloc " ) ]
180180 $item
181181 ) *
182182 }
You can’t perform that action at this time.
0 commit comments