Merge pull request #2780 from l4l/forked-wasmtimer

Use working wasmtimer for time::every
This commit is contained in:
Héctor 2025-02-16 22:40:57 +01:00 committed by GitHub
commit d7563ee94a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 79 deletions

57
Cargo.lock generated
View file

@ -2543,7 +2543,7 @@ dependencies = [
"smol",
"tokio",
"wasm-bindgen-futures",
"wasm-timer",
"wasmtimer",
]
[[package]]
@ -4124,17 +4124,6 @@ version = "2.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
[[package]]
name = "parking_lot"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
dependencies = [
"instant",
"lock_api",
"parking_lot_core 0.8.6",
]
[[package]]
name = "parking_lot"
version = "0.12.3"
@ -4142,21 +4131,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
dependencies = [
"lock_api",
"parking_lot_core 0.9.10",
]
[[package]]
name = "parking_lot_core"
version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
dependencies = [
"cfg-if",
"instant",
"libc",
"redox_syscall 0.2.16",
"smallvec",
"winapi",
"parking_lot_core",
]
[[package]]
@ -4708,15 +4683,6 @@ dependencies = [
"font-types",
]
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags 1.3.2",
]
[[package]]
name = "redox_syscall"
version = "0.4.1"
@ -5864,7 +5830,7 @@ dependencies = [
"serde_json",
"tracing-subscriber",
"uuid",
"wasm-timer",
"wasmtimer",
"web-sys",
]
@ -6511,18 +6477,17 @@ dependencies = [
]
[[package]]
name = "wasm-timer"
version = "0.2.5"
name = "wasmtimer"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f"
checksum = "0048ad49a55b9deb3953841fa1fc5858f0efbcb7a18868c899a360269fac1b23"
dependencies = [
"futures",
"js-sys",
"parking_lot 0.11.2",
"parking_lot",
"pin-utils",
"slab",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
]
[[package]]
@ -6709,7 +6674,7 @@ dependencies = [
"js-sys",
"log",
"naga",
"parking_lot 0.12.3",
"parking_lot",
"profiling",
"raw-window-handle 0.6.2",
"smallvec",
@ -6737,7 +6702,7 @@ dependencies = [
"log",
"naga",
"once_cell",
"parking_lot 0.12.3",
"parking_lot",
"profiling",
"raw-window-handle 0.6.2",
"rustc-hash 1.1.0",
@ -6777,7 +6742,7 @@ dependencies = [
"ndk-sys 0.5.0+25.2.9519653",
"objc",
"once_cell",
"parking_lot 0.12.3",
"parking_lot",
"profiling",
"range-alloc",
"raw-window-handle 0.6.2",