Skip to content

Commit 038edc0

Browse files
committed
rebase + rename feature to "attributes"
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent d968a34 commit 038edc0

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2222

2323
[features]
2424
default = []
25-
docs = ["unstable"]
25+
docs = ["unstable", "attributes"]
2626
unstable = ["broadcaster"]
27-
bin = ["async-attributes"]
27+
attributes = ["async-attributes"]
2828

2929
[dependencies]
3030
async-attributes = { version = "1.0.0", optional = true }

src/lib.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,26 @@
3232
//! <span
3333
//! class="module-item stab portability"
3434
//! style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
35-
//! ><code>bin</code></span> or
35+
//! ><code>unstable</code></span>
36+
//! are available only when the `unstable` Cargo feature is enabled:
37+
//!
38+
//! ```toml
39+
//! [dependencies.async-std]
40+
//! version = "0.99"
41+
//! features = ["unstable"]
42+
//! ```
43+
//!
44+
//! Items marked with
3645
//! <span
3746
//! class="module-item stab portability"
3847
//! style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
39-
//! ><code>unstable</code></span>
40-
//! are available only when the corresponding Cargo features are enabled:
48+
//! ><code>attributes</code></span>
49+
//! are available only when the `attributes` Cargo feature is enabled:
4150
//!
4251
//! ```toml
4352
//! [dependencies.async-std]
4453
//! version = "0.99"
45-
//! features = ["bin", "unstable"]
54+
//! features = ["attributes"]
4655
//! ```
4756
4857
#![cfg(feature = "default")]
@@ -57,8 +66,8 @@
5766
#[macro_use]
5867
mod utils;
5968

60-
#[cfg_attr(feature = "docs", doc(cfg(bin)))]
61-
#[cfg(feature = "bin")]
69+
#[cfg(feature = "attributes")]
70+
#[cfg_attr(feature = "docs", doc(cfg(attributes)))]
6271
#[doc(inline)]
6372
pub use async_attributes::*;
6473

0 commit comments

Comments
 (0)