Skip to content

Commit bcd986d

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

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ matrix:
5050
rust: nightly
5151
os: linux
5252
script:
53-
- cargo doc --features docs unstable
53+
- cargo doc --features docs unstable bin
5454

5555
- name: book
5656
rust: nightly

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2323
[features]
2424
docs = []
2525
unstable = []
26+
bin = ["async-attributes"]
2627

2728
[dependencies]
29+
async-attributes = { version = "1.0.0", optional = true }
2830
async-macros = "1.0.0"
2931
async-task = "1.0.0"
3032
cfg-if = "0.1.9"

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_attr(feature = "docs", feature(doc_cfg))]
@@ -47,6 +51,11 @@
4751
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))]
4852
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
4953

54+
#[cfg_attr(feature = "docs", doc(cfg(bin)))]
55+
#[cfg(feature = "bin")]
56+
#[doc(inline)]
57+
pub use async_attributes::*;
58+
5059
use cfg_if::cfg_if;
5160

5261
pub mod fs;

0 commit comments

Comments
 (0)