File tree Expand file tree Collapse file tree 3 files changed +11
-419
lines changed Expand file tree Collapse file tree 3 files changed +11
-419
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " wasm-timer"
3
3
edition = " 2018"
4
- description = " Abstraction over std::time::Instant and tokio_timer that works on WASM"
5
- version = " 0.1.2 "
4
+ description = " Abstraction over std::time::Instant and futures-timer that works on WASM"
5
+ version = " 0.2.0 "
6
6
authors = [" Pierre Krieger <pierre.krieger1708@gmail.com>" ]
7
7
license = " MIT"
8
8
repository = " https://github.com/tomaka/wasm-timer"
9
9
10
+ [dependencies ]
11
+ futures-preview = " 0.3.0-alpha"
12
+ pin-utils = " 0.1.0-alpha.4"
13
+
10
14
[target .'cfg(any(target_arch = "wasm32"))' .dependencies ]
11
- futures = " 0.1"
12
15
js-sys = " 0.3.14"
13
16
send_wrapper = " 0.2"
14
17
wasm-bindgen = " 0.2.37"
15
18
web-sys = { version = " 0.3.14" , features = [" Performance" , " Window" ] }
16
-
17
- [target .'cfg(not(any(target_arch = "wasm32")))' .dependencies ]
18
- tokio-timer = " 0.2"
Original file line number Diff line number Diff line change 18
18
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19
19
// DEALINGS IN THE SOFTWARE.
20
20
21
+ pub use timer:: * ;
22
+
21
23
#[ cfg( not( target_arch = "wasm32" ) ) ]
22
24
pub use std:: time:: { Instant , SystemTime , UNIX_EPOCH } ;
23
- #[ cfg( not( target_arch = "wasm32" ) ) ]
24
- pub use tokio_timer:: * ;
25
25
#[ cfg( target_arch = "wasm32" ) ]
26
26
pub use wasm:: * ;
27
27
28
+ mod timer;
28
29
#[ cfg( target_arch = "wasm32" ) ]
29
30
mod wasm;
You can’t perform that action at this time.
0 commit comments