Cargo.toml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 = [ "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"] }
  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. # 错误处理增强
  34. thiserror = "1.0"
  35. aes = "0.8"
  36. ctr = "0.9"
  37. rsa = { version = "0.9", features = ["std", "sha2", "pem"], default-features = false }
  38. rand = "0.8"
  39. sha2 = "0.10"
  40. openssl = "0.10"
  41. winapi = { version = "0.3.9", features = ["debugapi", "processthreadsapi", "winbase"] }
  42. cbc = "0.1.2"
  43. ring = { version = "0.16.20", features = ["std"] }
  44. block-padding = "0.3"
  45. block-modes = "0.9.1"
  46. # tauri-plugin-single-instance 仅存在 2.x(适配 Tauri 2),当前为 Tauri 1.x 故暂不启用
  47. # tauri-plugin-single-instance = "1.0"
  48. # 安全增强
  49. [target.'cfg(target_os = "windows")'.dependencies]
  50. winapi = { version = "0.3", features = ["debugapi", "processthreadsapi", "winbase"] }
  51. [target.'cfg(target_os = "macos")'.dependencies]
  52. libc = "0.2"
  53. # 加密相关依赖
  54. rsa = { version = "0.9", features = ["std", "sha2"] }
  55. aes = "0.8"
  56. ctr = "0.9"
  57. block-padding = "0.3"
  58. rand = "0.8"
  59. openssl = { version = "0.10", features = ["vendored"] }
  60. sha2 = "0.10"
  61. [features]
  62. # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
  63. # DO NOT REMOVE!!
  64. custom-protocol = [ "tauri/custom-protocol" ]