refactor: fix depends

This commit is contained in:
MystiPanda 2023-12-07 14:44:44 +08:00
parent f08ce82c3f
commit 132d91c2ab
2 changed files with 6 additions and 36 deletions

24
src-tauri/Cargo.lock generated
View File

@ -591,7 +591,6 @@ dependencies = [
"warp", "warp",
"which 5.0.0", "which 5.0.0",
"window-shadows", "window-shadows",
"window-vibrancy",
"windows-sys 0.52.0", "windows-sys 0.52.0",
"winreg 0.52.0", "winreg 0.52.0",
] ]
@ -2917,15 +2916,6 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-src"
version = "300.1.6+3.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439fac53e092cd7442a3660c85dde4643ab3b5bd39040912388dcdabf6b88085"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "openssl-sys" name = "openssl-sys"
version = "0.9.96" version = "0.9.96"
@ -2934,7 +2924,6 @@ checksum = "3812c071ba60da8b5677cc12bcb1d42989a65553772897a7e0355545a819838f"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",
"openssl-src",
"pkg-config", "pkg-config",
"vcpkg", "vcpkg",
] ]
@ -5653,19 +5642,6 @@ dependencies = [
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
[[package]]
name = "window-vibrancy"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af6abc2b9c56bd95887825a1ce56cde49a2a97c07e28db465d541f5098a2656c"
dependencies = [
"cocoa 0.25.0",
"objc",
"raw-window-handle",
"windows-sys 0.52.0",
"windows-version",
]
[[package]] [[package]]
name = "windows" name = "windows"
version = "0.37.0" version = "0.37.0"

View File

@ -25,7 +25,6 @@ log4rs = "1"
nanoid = "0.4" nanoid = "0.4"
chrono = "0.4" chrono = "0.4"
sysinfo = "0.29" sysinfo = "0.29"
sysproxy = { git="https://github.com/zzzgydi/sysproxy-rs", branch = "main" }
rquickjs = "0.3" rquickjs = "0.3"
serde_json = "1.0" serde_json = "1.0"
serde_yaml = "0.9" serde_yaml = "0.9"
@ -34,14 +33,13 @@ once_cell = "1.18"
port_scanner = "0.1.5" port_scanner = "0.1.5"
delay_timer = "0.11" delay_timer = "0.11"
parking_lot = "0.12" parking_lot = "0.12"
percent-encoding = "2.3.1"
window-shadows = { version = "0.2" }
tokio = { version = "1", features = ["full"] } tokio = { version = "1", features = ["full"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
reqwest = { version = "0.11", features = ["json", "rustls-tls"] } reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
tauri = { version = "1.5", features = ["clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] } sysproxy = { git="https://github.com/zzzgydi/sysproxy-rs", branch = "main" }
window-vibrancy = { version = "0.4.3" } tauri = { version = "1.5", features = ["icon-png", "clipboard-all", "global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all"] }
window-shadows = { version = "0.2" }
percent-encoding = "2.3.1"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
runas = "=1.0.0" runas = "=1.0.0"
@ -49,12 +47,8 @@ deelevate = "0.2.0"
winreg = { version = "0.52", features = ["transactions"] } winreg = { version = "0.52", features = ["transactions"] }
windows-sys = { version = "0.52", features = ["Win32_System_LibraryLoader", "Win32_System_SystemInformation"] } windows-sys = { version = "0.52", features = ["Win32_System_LibraryLoader", "Win32_System_SystemInformation"] }
[target.'cfg(windows)'.dependencies.tauri] [target.'cfg(target_os = "linux")'.dependencies]
features = ["global-shortcut-all", "icon-png", "process-all", "shell-all", "system-tray", "updater", "window-all"] #openssl
[target.'cfg(linux)'.dependencies.tauri]
features = ["global-shortcut-all", "process-all", "shell-all", "system-tray", "updater", "window-all", "native-tls-vendored", "reqwest-native-tls-vendored"]
[features] [features]
default = ["custom-protocol"] default = ["custom-protocol"]