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