Cargo.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 = [ "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"] }
  18. base64 = "0.21"
  19. hmac = "0.12"
  20. sha1 = "0.10"
  21. dirs = "5.0"
  22. tokio = { version = "1", features = ["full"] }
  23. # 启用 chromium 浏览器集成
  24. # playwright = "0.0.20" # 暂时禁用以避免网络下载问题
  25. # Playwright disabled for builds that don't bundle Chromium.
  26. # To re-enable, uncomment the line above or use the enable-chromium.bat helper.
  27. chrono = { version = "0.4", features = ["serde"] }
  28. chrono-tz = "0.8"
  29. anyhow = "1.0"
  30. lazy_static = "1.4"
  31. # 错误处理增强
  32. thiserror = "1.0"
  33. aes = "0.8"
  34. ctr = "0.9"
  35. rsa = { version = "0.9", features = ["std", "sha2", "pem"], default-features = false }
  36. rand = "0.8"
  37. sha2 = "0.10"
  38. openssl = "0.10"
  39. winapi = { version = "0.3.9", features = ["debugapi", "processthreadsapi", "winbase"] }
  40. cbc = "0.1.2"
  41. ring = { version = "0.16.20", features = ["std"] }
  42. block-padding = "0.3"
  43. block-modes = "0.9.1"
  44. # 安全增强
  45. [target.'cfg(target_os = "windows")'.dependencies]
  46. winapi = { version = "0.3", features = ["debugapi", "processthreadsapi", "winbase"] }
  47. [target.'cfg(target_os = "macos")'.dependencies]
  48. libc = "0.2"
  49. # 加密相关依赖
  50. rsa = { version = "0.9", features = ["std", "sha2"] }
  51. aes = "0.8"
  52. ctr = "0.9"
  53. block-padding = "0.3"
  54. rand = "0.8"
  55. openssl = { version = "0.10", features = ["vendored"] }
  56. sha2 = "0.10"
  57. [features]
  58. # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
  59. # DO NOT REMOVE!!
  60. custom-protocol = [ "tauri/custom-protocol" ]