Skip to content

Commit eb03f37

Browse files
authored
Merge pull request #697 from async-rs/core-docs
Document the core feature
2 parents 125fa5b + d87e283 commit eb03f37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,16 @@
220220
//! default-features = false
221221
//! features = ["std"]
222222
//! ```
223+
//!
224+
//! And to use async-std on `no_std` targets that only support `alloc` only
225+
//! enable the `alloc` Cargo feature:
226+
//!
227+
//! ```toml
228+
//! [dependencies.async-std]
229+
//! version = "1.5.0"
230+
//! default-features = false
231+
//! features = ["alloc"]
232+
//! ```
223233
224234
#![cfg_attr(not(feature = "std"), no_std)]
225235
#![cfg_attr(feature = "docs", feature(doc_cfg))]

0 commit comments

Comments
 (0)