Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
[package]
name = "wasm-timer"
edition = "2018"
description = "Abstraction over std::time::Instant and futures-timer that works on WASM"
version = "0.2.4"
description = "Abstraction over std::time::Instant and std::time::SystemTime that works on WASM"
version = "0.3.0"
authors = ["Pierre Krieger <[email protected]>"]
license = "MIT"
repository = "https://github.com/tomaka/wasm-timer"

[dependencies]
futures = "0.3.1"
parking_lot = "0.9"
pin-utils = "0.1.0-alpha.4"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
js-sys = "0.3.31"
send_wrapper = "0.2"
wasm-bindgen = "0.2.37"
wasm-bindgen-futures = "0.4.4"
web-sys = { version = "0.3.31", features = ["Performance", "Window"] }
js-sys = "0.3.32"
web-sys = { version = "0.3.32", features = ["Performance", "Window"] }

[dev-dependencies]
async-std = "1.0"
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

pub use timer::*;

#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
pub use std::time::{Instant, SystemTime, UNIX_EPOCH};
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub use wasm::*;

mod timer;
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
mod wasm;
625 changes: 0 additions & 625 deletions src/timer.rs

This file was deleted.

155 changes: 0 additions & 155 deletions src/timer/arc_list.rs

This file was deleted.

Loading