From d026c44ea344e14a64320df80064950843c03a30 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 4 Feb 2020 11:07:50 +0100 Subject: [PATCH 1/4] Document the core feature Follow-up to https://github.com/async-rs/async-std/pull/680 --- src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 05073a2..7eb3050 100644 --- a/src/lib.rs +++ b/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))] From 3719484ebae68e0ea1b917dfdc49234193974f89 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 17 Feb 2020 13:36:23 +0100 Subject: [PATCH 2/4] Update src/lib.rs Co-Authored-By: nasa --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7eb3050..0e7844b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -228,7 +228,7 @@ //! [dependencies.async-std] //! version = "1.0.0" //! default-features = false -//! features = ["core"] +//! features = ["alloc"] //! ``` #![cfg_attr(not(feature = "std"), no_std)] From 283a54a1559b2660c82f4ddd0d03d7bd97a37f57 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 17 Feb 2020 13:36:59 +0100 Subject: [PATCH 3/4] Update src/lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0e7844b..f874045 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -222,7 +222,7 @@ //! ``` //! //! And to use async-std on `no_std` targets that only support `alloc` only -//! enable the `core` Cargo feature: +//! enable the `alloc` Cargo feature: //! //! ```toml //! [dependencies.async-std] From d87e2832150c249a6cce4210613f736819ecfe78 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Mon, 17 Feb 2020 13:38:24 +0100 Subject: [PATCH 4/4] Update src/lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f874045..a6a8f31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,7 +226,7 @@ //! //! ```toml //! [dependencies.async-std] -//! version = "1.0.0" +//! version = "1.5.0" //! default-features = false //! features = ["alloc"] //! ```