mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 05:40:05 +08:00
* chore(clippy): scope crate lint policy Keep panic-on-error lints at application target roots and scope signal dependencies to Linux. * docs(agents): define Rust backend architecture boundaries Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation. * refactor(draft): type async publication conflicts Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates. * refactor(logging): use typed logger errors Expose crate-owned logger errors and preserve the underlying error sources. * refactor(subscription): extract response decoding Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid. * refactor(profile): extract profile models and index rules Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error. * refactor(profile): separate subscription refresh and scheduling policy Separate download and scheduling policy from the subscription use case while retaining the existing write path. * refactor(subscription): decode deep links in the subscription crate * refactor(profile): extract selected node recovery rules * docs(agents): define dependencies between capability crates * refactor(task): move retry primitives into the task crate * refactor(backup): extract backup ZIP writing * refactor(subscription): keep profile writes outside proxy fallback * refactor(runtime-bundle): extract runtime bundle planning Plan provider destinations and assets in the crate. Adapt the plan to the Service wire format at the call site. * perf(runtime-bundle): share destination strings with tristr Share destination storage within bundle planning and preserve the Service wire strings and provider readback. * refactor(profile): extract script validation and execution Share the Boa validation and execution API while preserving the save-side timeout and diagnostics. * refactor(config): extract configuration renderer Render from inputs supplied by the app, reuse the script crate, and preserve the default template fast path. * refactor(proxy): extract proxy view and its use case Project the Mihomo snapshot into the existing IPC DTO and move use-case orchestration out of the command. * refactor(config): inject the profile script executor * refactor(config): centralize Mihomo YAML output * perf(runtime-bundle): read remote providers from borrowed configuration * chore(clippy): scope crate lint policy Keep panic-on-error lints at application target roots and scope signal dependencies to Linux. * docs(agents): define Rust backend architecture boundaries Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation. * refactor(draft): type async publication conflicts Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates. * refactor(logging): use typed logger errors Expose crate-owned logger errors and preserve the underlying error sources. * refactor(subscription): extract response decoding Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid. * refactor(profile): extract profile models and index rules Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error. * refactor(profile): separate subscription refresh and scheduling policy Separate download and scheduling policy from the subscription use case while retaining the existing write path. * refactor(subscription): decode deep links in the subscription crate * refactor(profile): extract selected node recovery rules * docs(agents): define dependencies between capability crates * refactor(task): move retry primitives into the task crate * refactor(backup): extract backup ZIP writing * refactor(subscription): keep profile writes outside proxy fallback * fix(profile): preserve delays for future update timestamps * fix(subscription): preserve filenames from response headers and URL paths * fix(subscription): separate deep link parameters from nested URLs * refactor(profile): look up the refresh target once * refactor(subscription): pass the proxy directly to each download * refactor(profile): build companion options in one place * refactor(profile): remove companions from the deleted profile * style(profile): keep profile fields together * refactor(profile): name index operations after what they change * refactor(profile): call the core reload directly * refactor(backup): move archive validation to the restore change * refactor(config): name the runtime rendering step * refactor(config): remove the unused runtime patch API * refactor(config): accumulate profile keys and logs during rendering * refactor(config): load cached chain items directly * refactor(script): keep console state local to evaluation * refactor(proxy): read group order and scope in one pass * refactor(config): reuse sequence storage when applying profile edits * refactor(proxy): collect provider snapshots in display order * refactor(proxy): build the view from its input * refactor(runtime-bundle): share provider section order * fix(config): fill blank IPv6 fake IP ranges in TUN mode * fix(config): keep runtime field sorting stable * perf(config): reuse profile sequence storage during rendering * fix(script): check the evaluated profile entry point * fix(script): support runtime console methods during validation * perf(script): count integer digits without formatting JSON * perf(proxy): resolve unique members without building scope caches * fix(runtime-bundle): reject mixed owners of a provider path * perf(runtime-bundle): reuse the normalized destination buffer * fix(script): reject oversized names before escaping
173 lines
5.3 KiB
TOML
Executable File
173 lines
5.3 KiB
TOML
Executable File
[package]
|
|
name = "clash-verge"
|
|
version = "2.6.0"
|
|
description = "clash verge"
|
|
authors = ["zzzgydi", "Tunglies", "wonfen", "MystiPanda"]
|
|
license = "GPL-3.0-only"
|
|
repository = "https://github.com/clash-verge-rev/clash-verge-rev.git"
|
|
default-run = "clash-verge"
|
|
build = "build.rs"
|
|
edition = "2024"
|
|
rust-version = "1.100"
|
|
|
|
[lib]
|
|
name = "app_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[features]
|
|
default = ["custom-protocol"]
|
|
custom-protocol = ["tauri/custom-protocol"]
|
|
tauri-dev = ["dep:tauri-plugin-devtools"]
|
|
tokio-trace = ["clash-verge-logging/tokio-trace"]
|
|
chrome-trace = ["clash-verge-logging/chrome-trace"]
|
|
clippy = ["tauri/test"]
|
|
perf-harness = ["dep:tauri-plugin-wdio-webdriver"]
|
|
|
|
[package.metadata.bundle]
|
|
identifier = "io.github.clash-verge-rev.clash-verge-rev"
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2.8.0", features = [] }
|
|
|
|
[dependencies]
|
|
clash-verge-draft = { workspace = true }
|
|
clash-verge-task = { workspace = true }
|
|
clash-verge-media-unlock = { workspace = true }
|
|
clash-verge-logging = { workspace = true }
|
|
clash-verge-i18n = { workspace = true }
|
|
clash-verge-limiter = { workspace = true }
|
|
clash-verge-subscription = { workspace = true }
|
|
clash-verge-runtime-bundle = { workspace = true }
|
|
clash-verge-config-render = { workspace = true }
|
|
clash-verge-profile-script = { workspace = true }
|
|
clash-verge-proxy-view = { workspace = true }
|
|
clash-verge-profile = { workspace = true }
|
|
clash-verge-backup-archive = { workspace = true }
|
|
tauri-plugin-clash-verge-sysinfo = { workspace = true }
|
|
tauri-plugin-clipboard-manager = { workspace = true }
|
|
tauri = { workspace = true, features = [
|
|
"protocol-asset",
|
|
"devtools",
|
|
"tracing",
|
|
"tray-icon",
|
|
"image-ico",
|
|
"image-png",
|
|
] }
|
|
parking_lot = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
tokio = { workspace = true }
|
|
log = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
serde_yaml_ng = { workspace = true }
|
|
tristr = { workspace = true }
|
|
socket2 = { workspace = true }
|
|
warp = { version = "0.4.4", features = ["server"] }
|
|
open = "5.4.5"
|
|
dirs = "7.0.0"
|
|
dunce = "1.0.5"
|
|
nanoid = "0.5"
|
|
chrono = { workspace = true }
|
|
http-body-util = "0.1.5"
|
|
percent-encoding = "2.3.2"
|
|
reqwest = { workspace = true }
|
|
sysproxy = { git = "https://github.com/clash-verge-rev/sysproxy-rs.git", rev = "2c9d0a538052aac6e44ad413156a6e848da262b9", version = "0.7.2", features = [
|
|
"guard",
|
|
] }
|
|
network-interface = { version = "2.0.5", features = ["serde"] }
|
|
tauri-plugin-shell = "2.6.0"
|
|
tauri-plugin-opener = "2.7.3"
|
|
tauri-plugin-dialog = { version = "2.9.0", default-features = false, features = ["gtk3"] }
|
|
tauri-plugin-fs = "2.8.0"
|
|
tauri-plugin-deep-link = "2.6.3"
|
|
tauri-plugin-window-state = "2.5.1"
|
|
zip = { workspace = true }
|
|
flate2 = "1.1.11"
|
|
reqwest_dav = "0.4.0"
|
|
aes-gcm = { version = "0.11.1" }
|
|
base64 = "0.23.1"
|
|
sha2 = { workspace = true }
|
|
getrandom = "0.4.3"
|
|
futures = { workspace = true }
|
|
gethostname = "1.1.0"
|
|
tauri-plugin-notification = "2.8.1"
|
|
tauri-plugin-http = "2.10.0"
|
|
backon = { version = "1.7.0", features = ["tokio-sleep"] }
|
|
tracing = { workspace = true }
|
|
tauri-plugin-devtools = { version = "2.2.3", optional = true }
|
|
tauri-plugin-mihomo = { git = "https://github.com/clash-verge-rev/tauri-plugin-mihomo", rev = "7e4fa8642cf6c394ed88b5a969420d8eab60087f" }
|
|
async-trait = "0.1.92"
|
|
clash_verge_service_ipc = { workspace = true, features = ["client"] }
|
|
arc-swap = "1.9.5"
|
|
tokio-rustls = "0.26.6"
|
|
rustls = { version = "0.23.47", features = ["ring"] }
|
|
webpki-roots = "1.0.12"
|
|
dark-light = "3.0.0"
|
|
bytes = "1.12.2"
|
|
tokio-util = { version = "0.7.20", features = ["time"] }
|
|
specta = { workspace = true, features = ["derive", "function", "serde_json"] }
|
|
tauri-specta = { version = "=2.0.0-rc.26", features = ["derive", "typescript"] }
|
|
specta-typescript = "=0.0.13"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2.191"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gtk = "0.19"
|
|
tauri = { workspace = true, features = ["linux-ksni"] }
|
|
# Upstream has no session-end signal support on Linux; see crates/clash-verge-signal.
|
|
clash-verge-signal = { workspace = true }
|
|
|
|
[target.'cfg(not(target_os = "linux"))'.dependencies]
|
|
rfd = { version = "0.18.0", default-features = false, features = ["common-controls-v6"] }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
tauri-plugin-wdio-webdriver = { version = "=2.0.0-next.0", optional = true }
|
|
objc2 = "0.6.5"
|
|
objc2-foundation = { version = "0.3.2", features = [
|
|
"NSString",
|
|
"NSDictionary",
|
|
"NSAttributedString",
|
|
] }
|
|
objc2-app-kit = { version = "0.3.2", features = [
|
|
"NSAttributedString",
|
|
"NSStatusItem",
|
|
"NSStatusBarButton",
|
|
"NSButton",
|
|
"NSControl",
|
|
"NSResponder",
|
|
"NSView",
|
|
"NSFont",
|
|
"NSFontDescriptor",
|
|
"NSColor",
|
|
"NSParagraphStyle",
|
|
"NSStringDrawing",
|
|
"NSText",
|
|
] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
deelevate = { workspace = true }
|
|
quick-xml = "0.42.0"
|
|
runas = "=1.2.0"
|
|
winreg = "0.56.0"
|
|
windows-service = "0.8.1"
|
|
windows = { version = "0.101.0", features = [
|
|
"Win32_System_Com",
|
|
"Win32_System_Ole",
|
|
"Win32_System_TaskScheduler",
|
|
"Win32_System_Variant",
|
|
] }
|
|
windows-sys.workspace = true
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
tauri-plugin-autostart = "2.7.0"
|
|
tauri-plugin-global-shortcut = "2.4.1"
|
|
tauri-plugin-updater = "2.14.1"
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["test-util"] }
|
|
warp = { version = "0.4.4", features = ["test"] }
|
|
|
|
[lints]
|
|
workspace = true
|