File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ features = ["docs"]
21
21
rustdoc-args = [" --cfg" , " feature=\" docs\" " ]
22
22
23
23
[features ]
24
- docs = []
25
- unstable = []
24
+ docs = [" broadcaster " ]
25
+ unstable = [" broadcaster " ]
26
26
27
27
[dependencies ]
28
28
async-macros = " 1.0.0"
@@ -42,7 +42,7 @@ num_cpus = "1.10.1"
42
42
pin-utils = " 0.1.0-alpha.4"
43
43
slab = " 0.4.2"
44
44
kv-log-macro = " 1.0.4"
45
- broadcaster = " 0.2.4"
45
+ broadcaster = { version = " 0.2.4" , optional = true }
46
46
47
47
[dev-dependencies ]
48
48
femme = " 1.2.0"
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ use crate::sync::Mutex;
32
32
/// # });
33
33
/// # }
34
34
/// ```
35
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
35
36
#[ derive( Debug ) ]
36
37
pub struct Barrier {
37
38
state : Mutex < BarrierState > ,
@@ -60,6 +61,7 @@ struct BarrierState {
60
61
/// let barrier = Barrier::new(1);
61
62
/// let barrier_wait_result = barrier.wait();
62
63
/// ```
64
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
63
65
#[ derive( Debug , Clone ) ]
64
66
pub struct BarrierWaitResult ( bool ) ;
65
67
Original file line number Diff line number Diff line change 32
32
#[ doc( inline) ]
33
33
pub use std:: sync:: { Arc , Weak } ;
34
34
35
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
35
36
pub use barrier:: { Barrier , BarrierWaitResult } ;
37
+
36
38
pub use mutex:: { Mutex , MutexGuard } ;
37
39
pub use rwlock:: { RwLock , RwLockReadGuard , RwLockWriteGuard } ;
38
40
41
+ #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
42
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
39
43
mod barrier;
40
44
mod mutex;
41
45
mod rwlock;
You can’t perform that action at this time.
0 commit comments