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 = [
2929 " log" ,
3030 " num_cpus" ,
3131 " pin-project-lite" ,
32- " smol" ,
3332]
3433docs = [" attributes" , " unstable" , " default" ]
3534unstable = [" std" , " broadcaster" ]
@@ -43,6 +42,7 @@ std = [
4342 " once_cell" ,
4443 " pin-utils" ,
4544 " slab" ,
45+ " smol" ,
4646]
4747alloc = [
4848 " futures-core/alloc" ,
Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ pub(crate) trait Context {
5959 fn context ( self , message : impl Fn ( ) -> String ) -> Self ;
6060}
6161
62- #[ cfg( not( target_os = "unknown" ) ) ]
62+ #[ cfg( all ( not( target_os = "unknown" ) , feature = "default ") ) ]
6363pub ( crate ) type Timer = smol:: Timer ;
6464
65- #[ cfg( target_arch = "wasm32" ) ]
65+ #[ cfg( all ( target_arch = "wasm32" , feature = "default" ) ) ]
6666#[ derive( Debug ) ]
6767pub ( crate ) struct Timer ( wasm_timer:: Delay ) ;
6868
69- #[ cfg( target_arch = "wasm32" ) ]
69+ #[ cfg( all ( target_arch = "wasm32" , feature = "default" ) ) ]
7070impl Timer {
7171 pub ( crate ) fn after ( dur : std:: time:: Duration ) -> Self {
7272 Timer ( wasm_timer:: Delay :: new ( dur) )
You can’t perform that action at this time.
0 commit comments