File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ default = [
29
29
" log" ,
30
30
" num_cpus" ,
31
31
" pin-project-lite" ,
32
- " smol" ,
33
32
]
34
33
docs = [" attributes" , " unstable" , " default" ]
35
34
unstable = [" std" , " broadcaster" ]
@@ -43,6 +42,7 @@ std = [
43
42
" once_cell" ,
44
43
" pin-utils" ,
45
44
" slab" ,
45
+ " smol" ,
46
46
]
47
47
alloc = [
48
48
" futures-core/alloc" ,
Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ pub(crate) trait Context {
59
59
fn context ( self , message : impl Fn ( ) -> String ) -> Self ;
60
60
}
61
61
62
- #[ cfg( not( target_os = "unknown" ) ) ]
62
+ #[ cfg( all ( not( target_os = "unknown" ) , feature = "default ") ) ]
63
63
pub ( crate ) type Timer = smol:: Timer ;
64
64
65
- #[ cfg( target_arch = "wasm32" ) ]
65
+ #[ cfg( all ( target_arch = "wasm32" , feature = "default" ) ) ]
66
66
#[ derive( Debug ) ]
67
67
pub ( crate ) struct Timer ( wasm_timer:: Delay ) ;
68
68
69
- #[ cfg( target_arch = "wasm32" ) ]
69
+ #[ cfg( all ( target_arch = "wasm32" , feature = "default" ) ) ]
70
70
impl Timer {
71
71
pub ( crate ) fn after ( dur : std:: time:: Duration ) -> Self {
72
72
Timer ( wasm_timer:: Delay :: new ( dur) )
You can’t perform that action at this time.
0 commit comments