File tree 3 files changed +40
-27
lines changed
3 files changed +40
-27
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ features = ["docs"]
21
21
rustdoc-args = [" --cfg" , " feature=\" docs\" " ]
22
22
23
23
[features ]
24
+ default = [" stable" ]
24
25
docs = [" unstable" ]
25
26
unstable = [" broadcaster" ]
27
+ stable = []
26
28
27
29
[dependencies ]
28
30
async-macros = " 1.0.0"
Original file line number Diff line number Diff line change 49
49
#![ doc( html_logo_url = "https://async.rs/images/logo--hero.svg" ) ]
50
50
#![ recursion_limit = "2048" ]
51
51
52
- #[ macro_use]
53
- mod utils;
52
+ /// Declares stable items.
53
+ #[ doc( hidden) ]
54
+ macro_rules! cfg_stable {
55
+ ( $( $item: item) * ) => {
56
+ $(
57
+ #[ cfg( feature = "stable" ) ]
58
+ $item
59
+ ) *
60
+ }
61
+ }
54
62
55
- pub mod fs;
56
- pub mod future;
57
- pub mod io;
58
- pub mod net;
59
- pub mod os;
60
- pub mod path;
61
- pub mod prelude;
62
- pub mod stream;
63
- pub mod sync;
64
- pub mod task;
63
+ cfg_stable ! {
64
+ #[ macro_use]
65
+ mod utils;
65
66
66
- cfg_unstable ! {
67
- pub mod pin;
68
- pub mod process;
67
+ pub mod fs;
68
+ pub mod future;
69
+ pub mod io;
70
+ pub mod net;
71
+ pub mod os;
72
+ pub mod path;
73
+ pub mod prelude;
74
+ pub mod stream;
75
+ pub mod sync;
76
+ pub mod task;
69
77
70
- mod unit;
71
- mod vec;
72
- mod result;
73
- mod option;
74
- mod string;
75
- mod collections;
78
+ cfg_unstable! {
79
+ pub mod pin;
80
+ pub mod process;
76
81
77
- #[ doc( inline) ]
78
- pub use std:: { write, writeln} ;
79
- }
82
+ mod unit;
83
+ mod vec;
84
+ mod result;
85
+ mod option;
86
+ mod string;
87
+ mod collections;
80
88
81
- mod macros;
89
+ #[ doc( inline) ]
90
+ pub use std:: { write, writeln} ;
91
+ }
92
+
93
+ mod macros;
94
+ }
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ pub use crate::io::Seek as _;
23
23
pub use crate :: io:: Write as _;
24
24
#[ doc( no_inline) ]
25
25
pub use crate :: stream:: Stream ;
26
- #[ doc( no_inline) ]
27
- pub use crate :: task_local;
28
26
29
27
#[ doc( hidden) ]
30
28
pub use crate :: future:: future:: FutureExt as _;
You can’t perform that action at this time.
0 commit comments