Skip to content

Commit

Permalink
rebase + rename feature to "attributes"
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts committed Nov 2, 2019
1 parent d968a34 commit 038edc0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]

[features]
default = []
docs = ["unstable"]
docs = ["unstable", "attributes"]
unstable = ["broadcaster"]
bin = ["async-attributes"]
attributes = ["async-attributes"]

[dependencies]
async-attributes = { version = "1.0.0", optional = true }
Expand Down
21 changes: 15 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,26 @@
//! <span
//! class="module-item stab portability"
//! style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
//! ><code>bin</code></span> or
//! ><code>unstable</code></span>
//! are available only when the `unstable` Cargo feature is enabled:
//!
//! ```toml
//! [dependencies.async-std]
//! version = "0.99"
//! features = ["unstable"]
//! ```
//!
//! Items marked with
//! <span
//! class="module-item stab portability"
//! style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
//! ><code>unstable</code></span>
//! are available only when the corresponding Cargo features are enabled:
//! ><code>attributes</code></span>
//! are available only when the `attributes` Cargo feature is enabled:
//!
//! ```toml
//! [dependencies.async-std]
//! version = "0.99"
//! features = ["bin", "unstable"]
//! features = ["attributes"]
//! ```
#![cfg(feature = "default")]
Expand All @@ -57,8 +66,8 @@
#[macro_use]
mod utils;

#[cfg_attr(feature = "docs", doc(cfg(bin)))]
#[cfg(feature = "bin")]
#[cfg(feature = "attributes")]
#[cfg_attr(feature = "docs", doc(cfg(attributes)))]
#[doc(inline)]
pub use async_attributes::*;

Expand Down

0 comments on commit 038edc0

Please sign in to comment.