Files

66 lines
1.9 KiB
TOML

[package]
name = "huangguo-client"
version = "1.2.0"
description = "HGhub · 黄果短剧跨平台客户端 (macOS & iOS 增强版)"
authors = ["HGhub"]
license = "PolyForm-Noncommercial-1.0.0"
edition = "2021"
rust-version = "1.90"
[lib]
name = "huangguo_client_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "=2.7.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
time = { version = "0.3", features = ["formatting"] }
# 注意:system-proxy 必须显式列出。关掉 default-features 会连带丢掉它,
# 客户端就完全不看 Windows 系统代理(注册表 ProxyEnable/ProxyServer)而直连,
# 症状正是「浏览器能开官网、HGhub 打不开」。见 src/net.rs 顶部说明。
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls",
"system-proxy",
"gzip",
"brotli",
"json",
"charset",
] }
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "net"] }
aes = "0.8"
base64 = "0.22"
percent-encoding = "2"
once_cell = "1"
url = "2"
# macOS 红绿灯垂直居中需要读取 AppKit 按钮尺寸(见 src/macos_titlebar.rs)。
# 三者均已是 tao/wry 的间接依赖,版本与 Cargo.lock 一致;只开启用到的 feature。
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
objc2-app-kit = { version = "0.3", default-features = false, features = [
"std",
"NSButton",
"NSControl",
"NSGraphics",
"NSResponder",
"NSView",
"NSWindow",
] }
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSGeometry"] }
[profile.release]
panic = "abort"
codegen-units = 1
lto = true
opt-level = "s"
strip = true