Reexport Instant and fix license

This commit is contained in:
Pierre Krieger 2019-04-18 17:23:39 +02:00
parent 87e6df79cf
commit 1347e8b7cd
4 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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

View File

@ -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")]

View File

@ -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"),