Cargo.toml 984 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [package]
  2. name = "api"
  3. version = "0.1.0"
  4. description = "An example Tauri Application showcasing the api"
  5. edition = "2021"
  6. rust-version = "1.57"
  7. license = "Apache-2.0 OR MIT"
  8. [build-dependencies]
  9. tauri-build = { path = "../../../core/tauri-build", features = ["isolation"] }
  10. [dependencies]
  11. serde_json = "1.0"
  12. serde = { version = "1.0", features = [ "derive" ] }
  13. tiny_http = "0.11"
  14. [dependencies.tauri]
  15. path = "../../../core/tauri"
  16. features = [
  17. "api-all",
  18. "cli",
  19. "global-shortcut",
  20. "http-multipart",
  21. "icon-ico",
  22. "icon-png",
  23. "isolation",
  24. "macos-private-api",
  25. "windows7-compat",
  26. "reqwest-client",
  27. "system-tray",
  28. "updater"
  29. ]
  30. [target."cfg(target_os = \"windows\")".dependencies]
  31. window-vibrancy = "0.1"
  32. window-shadows= "0.1"
  33. [features]
  34. default = [ "custom-protocol" ]
  35. custom-protocol = [ "tauri/custom-protocol" ]
  36. # default to small, optimized release binaries
  37. [profile.release]
  38. panic = "abort"
  39. codegen-units = 1
  40. lto = true
  41. incremental = false
  42. opt-level = "s"