Skip to content

Commit d026c44

Browse files
committed
Document the core feature
Follow-up to #680
1 parent 125fa5b commit d026c44

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 `core` Cargo feature:
226+
//!
227+
//! ```toml
228+
//! [dependencies.async-std]
229+
//! version = "1.0.0"
230+
//! default-features = false
231+
//! features = ["core"]
232+
//! ```
223233
224234
#![cfg_attr(not(feature = "std"), no_std)]
225235
#![cfg_attr(feature = "docs", feature(doc_cfg))]

0 commit comments

Comments
 (0)