Files
Wardrobe/src-tauri/Cargo.toml
T
jif2.zhang b8018f7807
Android Build & Publish / build-android (push) Failing after 19m6s
Docker Build and Push / build-image (push) Successful in 2m23s
fix(android): 钉 chrono <0.4.40 修复 arrow-arith 51 的 quarter 方法歧义 (E0034)
[原因] duckdb 0.10.2 非可选依赖 arrow 51 (→ arrow-arith 51)。
chrono 0.4.40+ 在 Datelike 新增 quarter(), 与 arrow-arith 自带的
ChronoDateExt::quarter 在 temporal.rs:90 产生 E0034 multiple applicable items。
桌面构建走 docker-build(web+OTA), 从未编译 arrow, 故只有 android CI 暴露。

[验证] cargo update -p chrono --precise 0.4.39 成功; 本机缺 MSVC 无法 cargo check,
  修复与 arrow-rs#6600 官方 workaround 一致 (chrono >=0.4.38, <0.4.40)
2026-09-14 14:46:19 +08:00

40 lines
1.2 KiB
TOML

[package]
name = "wardrobe"
version = "0.1.0"
edition = "2021"
description = "Wardrobe - AI-powered clothing management system"
# 库目标: 桌面 + Android (cdylib) 都需要
[lib]
name = "wardrobe_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[dependencies]
tauri = { version = "2", features = ["tray-icon"] }
tauri-plugin-shell = "2"
# 前端 OTA 升级 (运行时覆盖 tauri://localhost 资源; 替换 Assets provider)
tauri-plugin-hotswap = "0.0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
duckdb = { version = "0.10", features = ["bundled"] }
tokio = { version = "1", features = ["full"] }
uuid = { version = "1", features = ["v4"] }
# 版本上限: chrono 0.4.40 起 Datelike 新增 quarter(), 与 arrow-arith 51 的
# ChronoDateExt::quarter (duckdb 0.10.2 非可选依赖 arrow 51) 产生 E0034 方法歧义
chrono = { version = ">=0.4.38, <0.4.40", features = ["serde"] }
sha2 = "0.10"
hex = "0.4"
ctrlc = "3"
log = "0.4"
env_logger = "0.11"
[target."cfg(target_os = \"android\")".dependencies]
tauri = { version = "2", features = [] }
[build-dependencies]
tauri-build = { version = "2", features = [] }
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]