[package]
name = "clock-timer"
version = "0.2.7"
edition = "2024"
description = "A clock crate that offer a timer and a stopwatch to use in your apps"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ctrlc = { version = "3.4", features = [
"termination",
] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
js-sys = "0.3"
web-sys = { version = "0.3.77", features = ["console", "Window"] }
wasm-bindgen-futures = "0.4"
console_error_panic_hook = { version = "0.1.7", optional = true }
[features]
default = []
console_error_panic_hook = ["dep:console_error_panic_hook"]