35 lines
1.1 KiB
TOML
35 lines
1.1 KiB
TOML
[package]
|
|
name = "iboard"
|
|
version = "0.1.0"
|
|
description = "iBoard - 经济数据与策略"
|
|
authors = ["iBoard Team"]
|
|
edition = "2021"
|
|
rust-version = "1.77"
|
|
|
|
# 库目标: 桌面 + Android (cdylib) 都需要
|
|
[lib]
|
|
name = "iboard_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# 前端 OTA 升级 (运行时覆盖 tauri://localhost 资源, 不动 Tauri 框架/原生层)
|
|
# 见 docs/architecture.md - 通过替换 Assets provider, webview 仍走 tauri:// 协议,
|
|
# 但优先从 AppData 读, 缺失回退到内置 dist
|
|
tauri-plugin-hotswap = "0.0.4"
|
|
|
|
# Android 平台需要的 JNI / Activity 启动能力
|
|
[target."cfg(target_os = \"android\")".dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
|
|
[features]
|
|
# Tauri 的"自定义协议"模式让打包后的 webview 能从 tauri:// 加载资源
|
|
# 用于生产构建, dev 模式不需要
|
|
default = ["custom-protocol"]
|
|
custom-protocol = ["tauri/custom-protocol"]
|