Files
Wardrobe/src-tauri/Cargo.toml
T
jif2.zhang 34a8a0a5a1
Android Build & Publish / build-android (push) Successful in 22m38s
Docker Build and Push / build-image (push) Successful in 1m44s
fix(android): 保留 serde_json 依赖 (tauri::generate_context! 宏展开需要)
2026-09-15 11:27:08 +08:00

31 lines
837 B
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"
# tauri::generate_context!() 宏展开内部引用 serde_json, 必须保留
serde_json = "1"
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"]