mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
Document the core feature
Follow-up to https://github.com/async-rs/async-std/pull/680
This commit is contained in:
parent
125fa5b0a0
commit
d026c44ea3
1 changed files with 10 additions and 0 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -220,6 +220,16 @@
|
|||
//! default-features = false
|
||||
//! features = ["std"]
|
||||
//! ```
|
||||
//!
|
||||
//! And to use async-std on `no_std` targets that only support `alloc` only
|
||||
//! enable the `core` Cargo feature:
|
||||
//!
|
||||
//! ```toml
|
||||
//! [dependencies.async-std]
|
||||
//! version = "1.0.0"
|
||||
//! default-features = false
|
||||
//! features = ["core"]
|
||||
//! ```
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![cfg_attr(feature = "docs", feature(doc_cfg))]
|
||||
|
|
Loading…
Reference in a new issue