Merge pull request #697 from async-rs/core-docs

Document the core feature
pull/708/head
Yoshua Wuyts 5 years ago committed by GitHub
commit eb03f37e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 `alloc` Cargo feature:
//!
//! ```toml
//! [dependencies.async-std]
//! version = "1.5.0"
//! default-features = false
//! features = ["alloc"]
//! ```
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "docs", feature(doc_cfg))]

Loading…
Cancel
Save