File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ matrix:
50
50
rust : nightly
51
51
os : linux
52
52
script :
53
- - cargo doc --features docs unstable
53
+ - cargo doc --features docs unstable bin
54
54
55
55
- name : book
56
56
rust : nightly
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
23
23
[features ]
24
24
docs = []
25
25
unstable = []
26
+ bin = [" async-attributes" ]
26
27
27
28
[dependencies ]
29
+ async-attributes = { version = " 1.0.0" , optional = true }
28
30
async-macros = " 1.0.0"
29
31
async-task = " 1.0.0"
30
32
cfg-if = " 0.1.9"
Original file line number Diff line number Diff line change 32
32
//! <span
33
33
//! class="module-item stab portability"
34
34
//! 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:
37
41
//!
38
42
//! ```toml
39
43
//! [dependencies.async-std]
40
44
//! version = "0.99"
41
- //! features = ["unstable"]
45
+ //! features = ["unstable", "bin" ]
42
46
//! ```
43
47
44
48
#![ cfg_attr( feature = "docs" , feature( doc_cfg) ) ]
47
51
#![ doc( test( attr( allow( unused_extern_crates, unused_variables) ) ) ) ]
48
52
#![ doc( html_logo_url = "https://async.rs/images/logo--hero.svg" ) ]
49
53
54
+ #[ cfg_attr( feature = "docs" , doc( cfg( bin) ) ) ]
55
+ #[ cfg( feature = "bin" ) ]
56
+ #[ doc( inline) ]
57
+ pub use async_attributes:: * ;
58
+
50
59
use cfg_if:: cfg_if;
51
60
52
61
pub mod fs;
You can’t perform that action at this time.
0 commit comments