forked from mirror/async-std
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:
parent
bc24503382
commit
84880c4d8b
2 changed files with 21 additions and 1 deletions
|
@ -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"] }
|
||||
|
|
18
src/lib.rs
18
src/lib.rs
|
@ -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))]
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue