Skip to content

Commit 1347e8b

Browse files
committed
Reexport Instant and fix license
1 parent 87e6df7 commit 1347e8b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "wasm-timer"
33
edition = "2018"
44
description = "Abstraction over std::time::Instant and tokio_timer that works on WASM"
5-
version = "0.1.0"
5+
version = "0.1.1"
66
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
77
license = "MIT"
88
repository = "https://github.com/tomaka/wasm-timer"

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Copyright 2019 Pierre Krieger
2+
Copyright (c) 2019 Tokio Contributors
23

34
Permission is hereby granted, free of charge, to any person obtaining a copy of
45
this software and associated documentation files (the "Software"), to deal in

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1919
// DEALINGS IN THE SOFTWARE.
2020

21+
#[cfg(not(target_arch = "wasm32"))]
22+
pub use std::time::Instant;
2123
#[cfg(not(target_arch = "wasm32"))]
2224
pub use tokio_timer::*;
2325
#[cfg(target_arch = "wasm32")]

src/wasm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2019 Pierre Krieger
2+
// Copyright (c) 2019 Tokio Contributors
23
//
34
// Permission is hereby granted, free of charge, to any person obtaining a
45
// copy of this software and associated documentation files (the "Software"),

0 commit comments

Comments
 (0)