Skip to content

Commit 7efe7ca

Browse files
committed
fix: Change feature name no-std to alloc
1 parent 22d929d commit 7efe7ca

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
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

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff 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
]

Diff for: src/future/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
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
}

Diff for: src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub use async_attributes::{main, test};
241241
#[cfg(feature = "std")]
242242
mod macros;
243243

244-
cfg_no_std! {
244+
cfg_alloc! {
245245
pub mod task;
246246
pub mod future;
247247
pub mod stream;

Diff for: src/task/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
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;

Diff for: src/utils.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#[cfg(feature = "no-std")]
1+
#[cfg(feature = "alloc")]
22
extern crate alloc;
33

4-
#[cfg(feature = "no-std")]
4+
#[cfg(feature = "alloc")]
55
use 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
}

0 commit comments

Comments
 (0)