Cargo.toml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.59"
  7. license = "Apache-2.0 OR MIT"
  8. [build-dependencies]
  9. tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "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.2"
  32. window-shadows= "0.2"
  33. [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
  34. log = "0.4"
  35. tauri-runtime-wry = { path = "../../../core/tauri-runtime-wry/" }
  36. [target.'cfg(target_os = "android")'.dependencies]
  37. android_logger = "0.9.0"
  38. jni = "0.19.0"
  39. paste = "1.0"
  40. [target.'cfg(target_os = "ios")'.dependencies]
  41. mobile-entry-point = "0.1.0"
  42. env_logger = "0.9.0"
  43. [features]
  44. custom-protocol = [ "tauri/custom-protocol" ]
  45. # default to small, optimized release binaries
  46. [profile.release]
  47. panic = "abort"
  48. codegen-units = 1
  49. lto = true
  50. incremental = false
  51. opt-level = "s"