Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 = ["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. "reqwest-native-tls-vendored",
  28. "system-tray",
  29. "updater"
  30. ]
  31. [target."cfg(target_os = \"windows\")".dependencies]
  32. window-vibrancy = "0.2"
  33. window-shadows= "0.2"
  34. [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
  35. log = "0.4"
  36. tauri-runtime-wry = { path = "../../../core/tauri-runtime-wry/" }
  37. [target.'cfg(target_os = "android")'.dependencies]
  38. android_logger = "0.9.0"
  39. jni = "0.19.0"
  40. paste = "1.0"
  41. [target.'cfg(target_os = "ios")'.dependencies]
  42. mobile-entry-point = "0.1.0"
  43. env_logger = "0.9.0"
  44. [features]
  45. default = [ "custom-protocol" ]
  46. custom-protocol = [ "tauri/custom-protocol" ]
  47. # default to small, optimized release binaries
  48. [profile.release]
  49. panic = "abort"
  50. codegen-units = 1
  51. lto = true
  52. incremental = false
  53. opt-level = "s"