move wasmtimer to wasm32 dependencies

This commit is contained in:
Peerat Vichivanives 2024-12-02 14:34:14 -08:00
parent 4b3140e1e6
commit 0af5f89220

View file

@ -24,14 +24,13 @@ reqwest = { version = "0.12.0", default-features = false }
retry-policies = "0.4" retry-policies = "0.4"
thiserror = "1.0.61" thiserror = "1.0.61"
tracing = { version = "0.1.26", optional = true } tracing = { version = "0.1.26", optional = true }
wasmtimer = "0.4.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
hyper = "1.0" hyper = "1.0"
tokio = { version = "1.6.0", default-features = false, features = ["time"] } tokio = { version = "1.6.0", default-features = false, features = ["time"] }
[target.'cfg(target_arch = "wasm32")'.dependencies] [target.'cfg(target_arch = "wasm32")'.dependencies]
wasmtimer = "0.4.1"
getrandom = { version = "0.2.0", features = ["js"] } getrandom = { version = "0.2.0", features = ["js"] }
[dev-dependencies] [dev-dependencies]