mirror of
https://github.com/fluencelabs/wasm-timer
synced 2025-04-24 10:42:13 +00:00
Reexport Instant and fix license
This commit is contained in:
parent
87e6df79cf
commit
1347e8b7cd
@ -2,7 +2,7 @@
|
||||
name = "wasm-timer"
|
||||
edition = "2018"
|
||||
description = "Abstraction over std::time::Instant and tokio_timer that works on WASM"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/tomaka/wasm-timer"
|
||||
|
1
LICENSE
1
LICENSE
@ -1,4 +1,5 @@
|
||||
Copyright 2019 Pierre Krieger
|
||||
Copyright (c) 2019 Tokio Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
|
@ -18,6 +18,8 @@
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub use std::time::Instant;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub use tokio_timer::*;
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
@ -1,4 +1,5 @@
|
||||
// Copyright 2019 Pierre Krieger
|
||||
// Copyright (c) 2019 Tokio Contributors
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user