Skip to content

Commit 4770201

Browse files
committed
core feature
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 84880c4 commit 4770201

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ features = ["docs"]
2121
rustdoc-args = ["--cfg", "feature=\"docs\""]
2222

2323
[features]
24-
default = []
24+
default = ["core"]
2525
docs = ["unstable", "attributes"]
2626
unstable = ["broadcaster"]
2727
attributes = ["async-attributes"]
28+
core = []
2829

2930
[dependencies]
3031
async-attributes = { version = "1.1.0", optional = true }

src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
//! features = ["unstable"]
159159
//! ```
160160
//!
161+
<<<<<<< HEAD
161162
//! Items marked with
162163
//! <span
163164
//! class="module-item stab portability"
@@ -170,6 +171,16 @@
170171
//! version = "0.99"
171172
//! features = ["attributes"]
172173
//! ```
174+
//!
175+
//! Additionally it's possible to only use the core traits and combinators by
176+
//! only enabling the `core` Cargo feature:
177+
//!
178+
//! ```toml
179+
//! [dependencies.async-std]
180+
//! version = "0.99"
181+
//! default-features = false
182+
//! features = ["core"]
183+
//! ```
173184
174185
#![cfg(feature = "default")]
175186
#![cfg_attr(feature = "docs", feature(doc_cfg))]

0 commit comments

Comments
 (0)