b02daf1448
- 文件管理器分页加载、排序偏好、桌面表头排序、移动端排序菜单、Ctrl/Cmd+F搜索、Esc 关闭搜索、鼠标右滑返回上级。 - 移动端同步状态页、同步统计卡片、同步任务/累计统计事件、同步页布局更新。 - Android 相册同步默认路径改为 DCIM/Camera,下载路径改用 external_path。 - Rust sync-core 更新:Android 日志依赖、AlbumUpload/AlbumDownload、MirrorWcf 统计修复、Linux FUSE镜像挂载与读写同步支持。 - 依赖更新:external_path、fl_chart、pdfrx 升级,并修了 pdfrx 新版本的deprecated API。 - 新增文件包括:sort_options.dart、sync_page_android.dart、sync_stats_card.dart、platform/fuse.rs、sync_engine/fuse.rs。
89 lines
2.0 KiB
TOML
89 lines
2.0 KiB
TOML
[package]
|
|
name = "sync-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "lib"]
|
|
|
|
[dependencies]
|
|
# FRB
|
|
flutter_rust_bridge = "=2.12.0"
|
|
|
|
# 异步运行时
|
|
tokio = { workspace = true, features = ["signal"] }
|
|
|
|
# HTTP
|
|
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"], default-features = false }
|
|
|
|
# 序列化
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# 数据库
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
r2d2 = "0.8"
|
|
r2d2_sqlite = "0.25"
|
|
|
|
# 文件系统
|
|
walkdir = "2"
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
notify-debouncer-full = "0.7.0"
|
|
|
|
# 错误处理
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
|
|
# 日志
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# 并发
|
|
dashmap = "6"
|
|
|
|
# 工具
|
|
uuid = { workspace = true }
|
|
chrono = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
futures = "0.3"
|
|
futures-util = "0.3"
|
|
bytes = "1"
|
|
filetime = "0.2"
|
|
async-trait = "0.1"
|
|
url = "2"
|
|
urlencoding = "2"
|
|
mime_guess = "2"
|
|
once_cell = "1"
|
|
tokio-util = { version = "0.7", features = ["compat"] }
|
|
|
|
# SSE
|
|
# (已移除 eventsource 0.5 依赖,使用内联 SSE 解析器,避免旧版 tokio/net2 警告)
|
|
|
|
# 平台依赖 (feature-gated)
|
|
[target.'cfg(windows)'.dependencies]
|
|
sync-windows = { path = "../sync-windows", optional = true }
|
|
windows = { version = "0.58", optional = true }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
sync-linux = { path = "../sync-linux", optional = true }
|
|
fuser = { version = "0.15", optional = true }
|
|
libc = { version = "0.2", optional = true }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
sync-android = { path = "../sync-android", optional = true }
|
|
jni = { version = "0.21", optional = true }
|
|
android_logger = "0.15"
|
|
log = "0.4"
|
|
|
|
[features]
|
|
default = []
|
|
windows-cfapi = ["sync-windows", "windows"]
|
|
linux-notify = ["sync-linux"]
|
|
linux-fuse = ["fuser", "libc"]
|
|
android-media = ["sync-android", "jni"]
|
|
event_sink_enabled = []
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
|