File tree 4 files changed +17
-9
lines changed
4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ travis-ci = { repository = "crossbeam-rs/crossbeam" }
21
21
22
22
[features ]
23
23
default = [" std" ]
24
- nightly = [" crossbeam-epoch/nightly" , " crossbeam-utils/nightly" ]
24
+ nightly = [" crossbeam-epoch/nightly" , " crossbeam-utils/nightly" , " crossbeam-queue/nightly " ]
25
25
std = [
26
26
" crossbeam-channel" ,
27
27
" crossbeam-deque" ,
28
28
" crossbeam-epoch/std" ,
29
- " crossbeam-queue" ,
29
+ " crossbeam-queue/std " ,
30
30
" crossbeam-utils/std" ,
31
31
]
32
- alloc = [" crossbeam-epoch/alloc" , " crossbeam-utils/alloc" ]
32
+ alloc = [" crossbeam-epoch/alloc" , " crossbeam-utils/alloc" , " crossbeam-queue/alloc " ]
33
33
34
34
[dependencies ]
35
35
cfg-if = " 0.1.2"
@@ -52,6 +52,7 @@ default-features = false
52
52
[dependencies .crossbeam-queue ]
53
53
version = " 0.2"
54
54
path = " ./crossbeam-queue"
55
+ default-features = false
55
56
optional = true
56
57
57
58
[dependencies .crossbeam-utils ]
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ categories = ["concurrency", "data-structures"]
19
19
default = [" std" ]
20
20
std = [" crossbeam-utils/std" ]
21
21
alloc = [" crossbeam-utils/alloc" ]
22
+ nightly = []
22
23
23
24
[dependencies ]
24
25
cfg-if = " 0.1.2"
Original file line number Diff line number Diff line change 11
11
#![ warn( missing_docs) ]
12
12
#![ warn( missing_debug_implementations) ]
13
13
#![ cfg_attr( not( feature = "std" ) , no_std) ]
14
+ #![ cfg_attr( feature = "nightly" , feature( cfg_target_has_atomic) ) ]
14
15
15
16
#[ macro_use]
16
17
extern crate cfg_if;
@@ -29,6 +30,7 @@ cfg_if! {
29
30
30
31
extern crate crossbeam_utils;
31
32
33
+ #[ cfg_attr( feature = "nightly" , cfg( target_has_atomic = "ptr" ) ) ]
32
34
cfg_if ! {
33
35
if #[ cfg( any( feature = "alloc" , feature = "std" ) ) ] {
34
36
mod array_queue;
Original file line number Diff line number Diff line change @@ -77,6 +77,16 @@ pub mod utils {
77
77
pub use crossbeam_utils:: CachePadded ;
78
78
}
79
79
80
+ cfg_if ! {
81
+ if #[ cfg( any( feature = "std" , feature = "alloc" ) ) ] {
82
+ mod _queue {
83
+ pub extern crate crossbeam_queue;
84
+ }
85
+ #[ doc( inline) ]
86
+ pub use _queue:: crossbeam_queue as queue;
87
+ }
88
+ }
89
+
80
90
cfg_if ! {
81
91
if #[ cfg( feature = "std" ) ] {
82
92
mod _deque {
@@ -96,12 +106,6 @@ cfg_if! {
96
106
#[ doc( hidden) ]
97
107
pub use _channel:: * ;
98
108
99
- mod _queue {
100
- pub extern crate crossbeam_queue;
101
- }
102
- #[ doc( inline) ]
103
- pub use _queue:: crossbeam_queue as queue;
104
-
105
109
pub use crossbeam_utils:: sync;
106
110
pub use crossbeam_utils:: thread;
107
111
pub use crossbeam_utils:: thread:: scope;
You can’t perform that action at this time.
0 commit comments