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 @@ -43,7 +43,7 @@ std = [
4343 " pin-utils" ,
4444 " slab" ,
4545 " smol" ,
46- " wasm -timer" ,
46+ " futures -timer" ,
4747 " wasm-bindgen-futures" ,
4848 " futures-channel" ,
4949]
@@ -74,7 +74,7 @@ surf = { version = "1.0.3", optional = true }
7474smol = { version = " 0.1.1" , optional = true }
7575
7676[target .'cfg(target_arch = "wasm32")' .dependencies ]
77- wasm -timer = { version = " 0.2.4 " , optional = true }
77+ futures -timer = { version = " 3. 0.2" , optional = true , features = [ " wasm-bindgen " ] }
7878wasm-bindgen-futures = { version = " 0.4.10" , optional = true }
7979futures-channel = { version = " 0.3.4" , optional = true }
8080
Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ pub(crate) type Timer = smol::Timer;
6464
6565#[ cfg( all( target_arch = "wasm32" , feature = "default" ) ) ]
6666#[ derive( Debug ) ]
67- pub ( crate ) struct Timer ( wasm_timer :: Delay ) ;
67+ pub ( crate ) struct Timer ( futures_timer :: Delay ) ;
6868
6969#[ cfg( all( target_arch = "wasm32" , feature = "default" ) ) ]
7070impl Timer {
7171 pub ( crate ) fn after ( dur : std:: time:: Duration ) -> Self {
72- Timer ( wasm_timer :: Delay :: new ( dur) )
72+ Timer ( futures_timer :: Delay :: new ( dur) )
7373 }
7474}
7575
You can’t perform that action at this time.
0 commit comments