瀏覽代碼

refactor: fix depends

MystiPanda 1 年之前
父節點
當前提交
3f01f52c7b
共有 2 個文件被更改,包括 6 次插入36 次删除
  1. 0 24
      src-tauri/Cargo.lock
  2. 6 12
      src-tauri/Cargo.toml

+ 0 - 24
src-tauri/Cargo.lock

@@ -591,7 +591,6 @@ dependencies = [
  "warp",
  "which 5.0.0",
  "window-shadows",
- "window-vibrancy",
  "windows-sys 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"
 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]]
 name = "openssl-sys"
 version = "0.9.96"
@@ -2934,7 +2924,6 @@ checksum = "3812c071ba60da8b5677cc12bcb1d42989a65553772897a7e0355545a819838f"
 dependencies = [
  "cc",
  "libc",
- "openssl-src",
  "pkg-config",
  "vcpkg",
 ]
@@ -5653,19 +5642,6 @@ dependencies = [
  "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]]
 name = "windows"
 version = "0.37.0"

+ 6 - 12
src-tauri/Cargo.toml

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