File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
name = " wasm-timer"
3
3
edition = " 2018"
4
4
description = " Abstraction over std::time::Instant and tokio_timer that works on WASM"
5
- version = " 0.1.0 "
5
+ version = " 0.1.1 "
6
6
authors = [" Pierre Krieger <pierre.krieger1708@gmail.com>" ]
7
7
license = " MIT"
8
8
repository = " https://github.com/tomaka/wasm-timer"
Original file line number Diff line number Diff line change 1
1
Copyright 2019 Pierre Krieger
2
+ Copyright (c) 2019 Tokio Contributors
2
3
3
4
Permission is hereby granted, free of charge, to any person obtaining a copy of
4
5
this software and associated documentation files (the "Software"), to deal in
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
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
22
+ pub use std:: time:: Instant ;
21
23
#[ cfg( not( target_arch = "wasm32" ) ) ]
22
24
pub use tokio_timer:: * ;
23
25
#[ cfg( target_arch = "wasm32" ) ]
Original file line number Diff line number Diff line change 1
1
// Copyright 2019 Pierre Krieger
2
+ // Copyright (c) 2019 Tokio Contributors
2
3
//
3
4
// Permission is hereby granted, free of charge, to any person obtaining a
4
5
// copy of this software and associated documentation files (the "Software"),
You can’t perform that action at this time.
0 commit comments