Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix Rust Core time now call dependency for browser environment (#2279)

Leendert de Borstdb293c754266
diff --git a/core/rust/Cargo.lock b/core/rust/Cargo.lock
index fce11cd03..1b54d07ac 100644
--- a/core/rust/Cargo.lock
+++ b/core/rust/Cargo.lock
@@ -237,8 +237,10 @@ version = "0.4.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
dependencies = [
+ "js-sys",
"num-traits",
"serde",
+ "wasm-bindgen",
]
[[package]]
diff --git a/core/rust/Cargo.toml b/core/rust/Cargo.toml
index 49d1092fa..f56d4c05a 100644
--- a/core/rust/Cargo.toml
+++ b/core/rust/Cargo.toml
@@ -30,8 +30,8 @@ ffi = []
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
-# Date/time handling for LWW comparison (minimal features for smaller binary)
-chrono = { version = "0.4", default-features = false, features = ["serde", "now"] }
+# Date/time handling for LWW comparison
+chrono = { version = "0.4", default-features = false, features = ["serde", "now", "wasmbind"] }
# Error handling
thiserror = "1.0"