mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-17 17:32:15 +08:00
* refactor(config): adopt tristr for config strings Wire the tristr git dependency (pinned rev) and switch the config and enhance modules from smartstring::alias::String to tristr::alias::String. Drop the smartstring-era per-field specta overrides except the three webdav fields required by serialize_with and the ipc::JsonValue bridge: tristr maps to Primitive::str natively and the generated bindings stay byte-identical (gen-contract --check passes). Call sites in not-yet-migrated modules (cmd/core/feat/utils) are bridged with explicit tristr::alias::String paths and as_str().into() conversions; each bridge is absorbed when its module migrates. * refactor(cmd): adopt tristr for command strings Switch the cmd module from smartstring::alias::String to tristr::alias::String and drop its smartstring-era per-field specta overrides (ProfileSelection/ProfileCreate/ProfilePatch, RuntimeLogs); bindings stay byte-identical. Calls into not-yet-migrated feat/core functions keep smartstring-typed locals via full paths until those modules migrate. * refactor(core): adopt tristr for core strings Switch the core module (validate, timer, sysopt, backup, hotkey, tray, manager, notify) from smartstring::alias::String to tristr::alias::String and drop the smartstring-era specta overrides on ValidationOutcome and the notify payload structs; bindings stay byte-identical. WebDAV calls from the not-yet-migrated feat module are bridged with as_str().into(). * refactor(feat): adopt tristr for feature strings Switch the feat module (backup, icon, dns, profile, clash) from smartstring::alias::String to tristr::alias::String, drop its smartstring-era specta overrides (IconInfo, backup listings, DnsOverrideOutcome), and absorb the temporary smartstring-typed bridge locals the cmd module used to call into feat. * refactor(utils): adopt tristr for utility strings Switch utils/network.rs and utils/resolve/scheme.rs from smartstring::alias::String to tristr::alias::String and absorb the temporary user_agent and profile-name bridge conversions. * refactor(deps): drop smartstring in favor of tristr Remove the smartstring workspace and member dependencies and its Cargo.lock entry; tristr is the only string representation left. * build(deps): bump tristr to fuzz-harness fix rev Pin 3738d8c renames the stale vstr path dependency in the upstream fuzz manifest so its seven targets build again; library code is unchanged from 3756ed1a.
160 lines
4.9 KiB
TOML
Executable File
160 lines
4.9 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"]
|
|
verge-dev = ["clash-verge-logging/color", "clash_verge_service_ipc/development-channel"]
|
|
dev-sidecar = ["verge-dev"]
|
|
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.7.4", features = [] }
|
|
|
|
[dependencies]
|
|
clash-verge-draft = { workspace = true }
|
|
clash-verge-media-unlock = { workspace = true }
|
|
clash-verge-logging = { workspace = true }
|
|
clash-verge-i18n = { workspace = true }
|
|
clash-verge-limiter = { 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"
|
|
rfd = { version = "0.18.0", default-features = false, features = ["common-controls-v6", "xdg-portal"] }
|
|
dirs = "7.0.0"
|
|
dunce = "1.0.5"
|
|
nanoid = "0.5"
|
|
chrono = { workspace = true }
|
|
boa_engine = "0.22.0"
|
|
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 = "2.8.4"
|
|
tauri-plugin-fs = "2.7.1"
|
|
tauri-plugin-deep-link = "2.6.3"
|
|
tauri-plugin-window-state = "2.5.0"
|
|
zip = "9.6.0"
|
|
flate2 = "1.1.11"
|
|
reqwest_dav = "0.3.3"
|
|
aes-gcm = { version = "0.11.1" }
|
|
base64 = "0.23.1"
|
|
sha2 = "0.11.1"
|
|
getrandom = "0.4.3"
|
|
futures = "0.3.34"
|
|
gethostname = "1.1.0"
|
|
tauri-plugin-notification = "2.8.1"
|
|
backon = { version = "1.6.0", features = ["tokio-sleep"] }
|
|
tauri-plugin-http = "2.9.0"
|
|
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 = "e49bbedcc67d60da2c10e81bc6433b0f8e8fa232" }
|
|
async-trait = "0.1.92"
|
|
clash_verge_service_ipc = { git = "https://github.com/clash-verge-rev/clash-verge-service-ipc.git", tag = "v2.8.1", version = "2.8.1", features = [
|
|
"client",
|
|
] }
|
|
arc-swap = "1.9.5"
|
|
tokio-rustls = "0.26.6"
|
|
rustls = { version = "0.23.46", features = ["ring"] }
|
|
webpki-roots = "1.0.12"
|
|
dark-light = "3.0.0"
|
|
bytes = "1.12.1"
|
|
tokio-util = { version = "0.7.20", features = ["time"] }
|
|
specta = { version = "=2.0.0-rc.26", 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]
|
|
# Upstream has no session-end signal support on Linux; see crates/clash-verge-signal.
|
|
clash-verge-signal = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
tauri-plugin-wdio-webdriver = { version = "=1.5.1", 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 }
|
|
runas = "=1.2.0"
|
|
winreg = "0.56.0"
|
|
windows-service = "0.8.1"
|
|
windows = { version = "0.62.2", features = ["Win32_Globalization"] }
|
|
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
|