feat: add WASM support via web-time (#1037)

Support WASM environments by using web-time.
This was tested on a Cloudflare worker environment.
This commit is contained in:
Abid Omar
2025-02-17 15:53:19 +07:00
committed by GitHub
parent 3e9b1876d9
commit 5748af4c98
6 changed files with 44 additions and 2 deletions

11
Cargo.lock generated
View File

@@ -1233,6 +1233,7 @@ dependencies = [
"url",
"uuid",
"walkdir",
"web-time",
"webpki-roots",
]
@@ -2442,6 +2443,16 @@ dependencies = [
"wasm-bindgen",
]
[[package]]
name = "web-time"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "webpki-roots"
version = "0.26.7"