Files
HuLa/src-tauri/Cargo.toml
Dawn 9192125154
Some checks failed
Release CI / prepare-frontend (push) Has been cancelled
Release CI / publish-tauri (, ubuntu-22.04) (push) Has been cancelled
Release CI / publish-tauri (, windows-latest) (push) Has been cancelled
Release CI / publish-tauri (--target aarch64-apple-darwin, macos-latest) (push) Has been cancelled
Release CI / publish-tauri (--target x86_64-apple-darwin, macos-latest) (push) Has been cancelled
chore: release v3.0.6
2025-12-07 16:32:28 +08:00

179 lines
4.8 KiB
TOML

[package]
name = "hula"
version = "3.0.6"
description = "hula"
authors = ["nongyehong"]
license = ""
repository = ""
edition = "2024"
[workspace]
resolver = "3"
members = [".", "entity", "migration"]
[workspace.dependencies]
entity = { path = "entity" }
[profile.dev]
opt-level = 0 # 无优化
debug = true # 开启调试信息
overflow-checks = true # 整数溢出检查
[profile.release]
panic = "abort" # 崩溃时直接终止
codegen-units = 1 # 一个接一个地编译包,这样编译器就可以更好地优化
lto = true # 启用链接到优化
opt-level = 3 # 最大优化
strip = true # 删除调试符号
debug = false # 关闭调试信息
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "hula_app_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.5.3", features = [] }
cc = "1.2"
[dependencies]
# Tauri 官方依赖
tauri = { version = "2.9.4", features = [
"protocol-asset",
"macos-private-api",
"tray-icon",
"image-png",
"rustls-tls",
"unstable",
] }
tauri-plugin-os = "2"
tauri-plugin-shell = "2"
tauri-plugin-http = { version = "2", features = [
"unsafe-headers",
"rustls-tls",
] }
tauri-plugin-process = "2"
tauri-plugin-fs = "2"
tauri-plugin-dialog = "2"
tauri-plugin-upload = "2"
tauri-plugin-global-shortcut = "2"
tauri-plugin-clipboard-manager = "2"
tauri-plugin-sql = { version = "2", features = ["sqlite"] }
tauri-plugin-notification = "2"
tauri-plugin-opener = "2"
# tauri-plugin-devtools = "2"
tauri-plugin-log = { version = "2", features = ["colored"] }
tracing = "0.1"
tracing-subscriber = "0.3.22"
# Tauri 非官方依赖
tauri-plugin-mic-recorder = "2"
serde_json = "1"
sysinfo = "0.37.2"
async-walkdir = "2.1.0"
moka = { version = "0.12.11", features = ["future"] }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1.48.0", features = ["rt", "rt-multi-thread", "macros"] }
once_cell = "1.19"
sea-orm = { version = "1.1.19", features = [
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
"debug-print",
] }
chrono = "0.4.42"
entity = { path = "entity" }
migration = { path = "migration" } # depends on your needs
anyhow = "1.0.100"
thiserror = "2.0.17"
config = { version = "0.15.19", default-features = false, features = ["yaml"] }
http = "1.4.0"
lazy_static = "1.5"
mime_guess = "2.0.5"
base64 = "0.22.1"
rodio = "0.21.1"
image = { version = "0.25.9", features = ["jpeg", "png"] }
reqwest = { version = "0.12", default-features = false, features = [
"json",
"socks",
"rustls-tls",
"blocking",
"stream",
] }
futures = "0.3"
bytes = "1.11"
dotenv = "0.15.0"
pulldown-cmark = "0.13"
# WebSocket 相关依赖
tokio-tungstenite = { version = "0.28", features = ["rustls-tls-webpki-roots"] }
futures-util = "0.3"
url = "2.5"
uuid = { version = "1.19", features = ["v4"] }
# 移动端的依赖 (iOS 和 Android)
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
tauri-plugin-safe-area-insets = "0.1.0"
tauri-plugin-hula = { path = "../tauri-plugin-hula" }
tauri-plugin-barcode-scanner = "2.4.2"
[target."cfg(target_os = \"ios\")".dependencies]
objc2 = "0.6.3"
objc2-core-foundation = "0.3.2"
objc2-foundation = "0.3.2"
objc2-ui-kit = "0.3.2"
block2 = "0.6.2"
[target."cfg(target_os = \"android\")".dependencies]
jni = "0.21"
ndk-context = "0.1"
[target."cfg(target_os = \"linux\")".dependencies]
libc = "0.2"
# 不兼容移动端的依赖
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-autostart = "2"
tauri-plugin-single-instance = "2.3.6"
tauri-plugin-updater = "2"
screenshots = "0.8.10"
# mac平台需要依赖
[target."cfg(target_os =\"macos\")".dependencies]
objc2-app-kit = "0.3.2"
objc2 = "0.6.3"
core-foundation = "0.10.1"
core-graphics = "0.25.0"
libc = "0.2"
# windows平台需要依赖
[target."cfg(target_os = \"windows\")".dependencies]
windows = { version = "0.62.2", features = [
"Win32_System_Com",
"Win32_System_Diagnostics_Debug",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
"Win32_Graphics_Gdi",
"Win32_Foundation",
"Win32_System_Ole",
"Win32_System_Threading",
"Win32_Storage_FileSystem",
"Win32_UI_WindowsAndMessaging",
"Win32_UI_HiDpi",
"Win32_System_Registry",
] }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is a URL
default = ["custom-protocol"]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = ["tauri/custom-protocol"]