re-export async-attributes (#238)

* re-export async-attributes

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* doc order

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* rebase + rename feature to "attributes"

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* only expose test and main

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

* async-attributes 1.1.0

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-11-07 23:10:55 +01:00 committed by Stjepan Glavina
parent bc24503382
commit 84880c4d8b
2 changed files with 21 additions and 1 deletions

View file

@ -22,10 +22,12 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
[features] [features]
default = [] default = []
docs = ["unstable"] docs = ["unstable", "attributes"]
unstable = ["broadcaster"] unstable = ["broadcaster"]
attributes = ["async-attributes"]
[dependencies] [dependencies]
async-attributes = { version = "1.1.0", optional = true }
async-macros = "1.0.0" async-macros = "1.0.0"
async-task = "1.0.0" async-task = "1.0.0"
broadcaster = { version = "0.2.6", optional = true, default-features = false, features = ["default-channels"] } broadcaster = { version = "0.2.6", optional = true, default-features = false, features = ["default-channels"] }

View file

@ -157,6 +157,19 @@
//! version = "0.99" //! version = "0.99"
//! features = ["unstable"] //! 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(feature = "default")]
#![cfg_attr(feature = "docs", feature(doc_cfg))] #![cfg_attr(feature = "docs", feature(doc_cfg))]
@ -170,6 +183,11 @@
#[macro_use] #[macro_use]
mod utils; 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 fs;
pub mod future; pub mod future;
pub mod io; pub mod io;