Skip to content

Commit

Permalink
re-export async-attributes (#238)
Browse files Browse the repository at this point in the history
* re-export async-attributes

Signed-off-by: Yoshua Wuyts <[email protected]>

* doc order

Signed-off-by: Yoshua Wuyts <[email protected]>

* rebase + rename feature to "attributes"

Signed-off-by: Yoshua Wuyts <[email protected]>

* only expose test and main

Signed-off-by: Yoshua Wuyts <[email protected]>

* async-attributes 1.1.0

Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts authored and Stjepan Glavina committed Nov 7, 2019
1 parent bc24503 commit 84880c4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]

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

[dependencies]
async-attributes = { version = "1.1.0", optional = true }
async-macros = "1.0.0"
async-task = "1.0.0"
broadcaster = { version = "0.2.6", optional = true, default-features = false, features = ["default-channels"] }
Expand Down
18 changes: 18 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@
//! 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>attributes</code></span>
//! are available only when the `attributes` Cargo feature is enabled:
//!
//! ```toml
//! [dependencies.async-std]
//! version = "0.99"
//! features = ["attributes"]
//! ```
#![cfg(feature = "default")]
#![cfg_attr(feature = "docs", feature(doc_cfg))]
Expand All @@ -170,6 +183,11 @@
#[macro_use]
mod utils;

#[cfg(feature = "attributes")]
#[cfg_attr(feature = "docs", doc(cfg(attributes)))]
#[doc(inline)]
pub use async_attributes::{main, test};

pub mod fs;
pub mod future;
pub mod io;
Expand Down

0 comments on commit 84880c4

Please sign in to comment.