Cargo.toml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. default = [ "custom-protocol" ]
  45. custom-protocol = [ "tauri/custom-protocol" ]
  46. # default to small, optimized release binaries
  47. [profile.release]
  48. panic = "abort"
  49. codegen-units = 1
  50. lto = true
  51. incremental = false
  52. opt-level = "s"