Skip to content

Commit 90091a0

Browse files
committed
re-export async-attributes
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 9a4f4c5 commit 90091a0

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2424
default = []
2525
docs = ["unstable"]
2626
unstable = ["broadcaster"]
27+
bin = ["async-attributes"]
2728

2829
[dependencies]
30+
async-attributes = { version = "1.0.0", optional = true }
2931
async-macros = "1.0.0"
3032
async-task = "1.0.0"
3133
broadcaster = { version = "0.2.6", optional = true, default-features = false, features = ["default-channels"] }

src/lib.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@
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>unstable</code></span>
36-
//! are available only when the `unstable` Cargo feature is enabled:
35+
//! ><code>unstable</code></span> or
36+
//! <span
37+
//! class="module-item stab portability"
38+
//! style="display: inline; border-radius: 3px; padding: 2px; font-size: 80%; line-height: 1.2;"
39+
//! ><code>bin</code></span>
40+
//! are available only when the corresponding Cargo features are enabled:
3741
//!
3842
//! ```toml
3943
//! [dependencies.async-std]
4044
//! version = "0.99"
41-
//! features = ["unstable"]
45+
//! features = ["unstable", "bin"]
4246
//! ```
4347
4448
#![cfg(feature = "default")]
@@ -53,6 +57,11 @@
5357
#[macro_use]
5458
mod utils;
5559

60+
#[cfg_attr(feature = "docs", doc(cfg(bin)))]
61+
#[cfg(feature = "bin")]
62+
#[doc(inline)]
63+
pub use async_attributes::*;
64+
5665
pub mod fs;
5766
pub mod future;
5867
pub mod io;

0 commit comments

Comments
 (0)