Cargo.toml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [package]
  2. name = "your-app-name"
  3. version = "0.1.0"
  4. description = "Your app description"
  5. authors = ["Your Name"]
  6. license = ""
  7. repository = ""
  8. edition = "2021"
  9. rust-version = "1.60"
  10. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  11. [build-dependencies]
  12. tauri-build = { version = "1.5", features = [] }
  13. [dependencies]
  14. serde_json = "1.0"
  15. serde = { version = "1.0", features = ["derive"] }
  16. tauri = { version = "1.5", features = [ "window-close", "dialog-all", "fs-copy-file", "fs-create-dir", "fs-read-dir", "fs-exists", "fs-rename-file", "fs-remove-file", "fs-remove-dir", "shell-open", "fs-read-file", "fs-write-file", "path-all"] }
  17. reqwest = { version = "0.11", features = ["json", "socks", "gzip"] }
  18. base64 = "0.21"
  19. hmac = "0.12"
  20. sha1 = "0.10"
  21. md5 = "0.7"
  22. dirs = "5.0"
  23. tokio = { version = "1", features = ["full"] }
  24. # 启用 chromium 浏览器集成
  25. # playwright = "0.0.20" # 暂时禁用以避免网络下载问题
  26. # Playwright disabled for builds that don't bundle Chromium.
  27. # To re-enable, uncomment the line above or use the enable-chromium.bat helper.
  28. chrono = { version = "0.4", features = ["serde"] }
  29. chrono-tz = "0.8"
  30. anyhow = "1.0"
  31. lazy_static = "1.4"
  32. log = "0.4"
  33. flate2 = "1"
  34. regex = "1"
  35. urlencoding = "2"
  36. # 错误处理增强
  37. thiserror = "1.0"
  38. aes = "0.8"
  39. ctr = "0.9"
  40. rsa = { version = "0.9", features = ["std", "sha2", "pem"], default-features = false }
  41. rand = "0.8"
  42. sha2 = "0.10"
  43. # 使用预编译的 OpenSSL 静态库(需要设置环境变量)
  44. openssl = "0.10"
  45. winapi = { version = "0.3.9", features = ["debugapi", "processthreadsapi", "winbase", "winuser", "handleapi", "errhandlingapi", "synchapi", "winerror"] }
  46. cbc = "0.1.2"
  47. ring = { version = "0.16.20", features = ["std"] }
  48. block-padding = "0.3"
  49. block-modes = "0.9.1"
  50. futures-util = "0.3"
  51. # tauri-plugin-single-instance 仅存在 2.x(适配 Tauri 2),当前为 Tauri 1.x 故暂不启用
  52. # tauri-plugin-single-instance = "1.0"
  53. # 安全增强
  54. [target.'cfg(target_os = "windows")'.dependencies]
  55. winapi = { version = "0.3", features = ["debugapi", "processthreadsapi", "winbase", "winuser", "handleapi", "errhandlingapi", "synchapi", "winerror"] }
  56. [target.'cfg(target_os = "macos")'.dependencies]
  57. libc = "0.2"
  58. # 加密相关依赖
  59. rsa = { version = "0.9", features = ["std", "sha2"] }
  60. aes = "0.8"
  61. ctr = "0.9"
  62. block-padding = "0.3"
  63. rand = "0.8"
  64. sha2 = "0.10"
  65. [features]
  66. # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
  67. # DO NOT REMOVE!!
  68. custom-protocol = [ "tauri/custom-protocol" ]