From 9a5ae2c704534c09b660f89c4bda1b0523cf17f0 Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 19 Apr 2026 09:42:27 -0400 Subject: [PATCH] chore(core): add chrono wasmbind feature for WASM target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code review flagged that chrono's clock feature requires wasmbind for WASM builds — without it Utc::now() will fail at runtime in the idfoto-wasm crate. Also drops the redundant hex entry in [dev-dependencies] (already in [dependencies]). Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/idfoto-core/Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/idfoto-core/Cargo.toml b/crates/idfoto-core/Cargo.toml index e7cff87..2372e51 100644 --- a/crates/idfoto-core/Cargo.toml +++ b/crates/idfoto-core/Cargo.toml @@ -20,10 +20,8 @@ zeroize = { version = "1", features = ["zeroize_derive"] } zxcvbn = { version = "3", default-features = false } bip39 = { version = "2", default-features = false, features = ["std"] } unicode-normalization = "0.1" -chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] } +chrono = { version = "0.4", default-features = false, features = ["serde", "clock", "wasmbind"] } hex = "0.4" url = { version = "2", features = ["serde"] } getrandom = "0.2" -[dev-dependencies] -hex = "0.4"