Cargo.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # 暂时注释掉有问题的依赖
  24. # playwright = { git = "https://github.com/octaltree/playwright-rust", features = ["chromium"] }
  25. chrono = { version = "0.4", features = ["serde"] }
  26. chrono-tz = "0.8"
  27. anyhow = "1.0"
  28. lazy_static = "1.4"
  29. # 错误处理增强
  30. thiserror = "1.0"
  31. # 安全增强
  32. [target.'cfg(target_os = "windows")'.dependencies]
  33. winapi = { version = "0.3", features = ["debugapi", "processthreadsapi", "winbase"] }
  34. [target.'cfg(target_os = "macos")'.dependencies]
  35. libc = "0.2"
  36. # 加密相关依赖
  37. rsa = { version = "0.9", features = ["std", "sha2"] }
  38. aes = "0.8"
  39. ctr = "0.9"
  40. block-padding = "0.3"
  41. rand = "0.8"
  42. openssl = { version = "0.10", features = ["vendored"] }
  43. sha2 = "0.10"
  44. [features]
  45. # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
  46. # DO NOT REMOVE!!
  47. custom-protocol = [ "tauri/custom-protocol" ]