Cargo.toml 1.3 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.59"
  7. license = "Apache-2.0 OR MIT"
  8. [lib]
  9. name = "api_lib"
  10. [build-dependencies]
  11. tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isolation"] }
  12. [dependencies]
  13. serde_json = "1.0"
  14. serde = { version = "1.0", features = [ "derive" ] }
  15. tiny_http = "0.11"
  16. [dependencies.tauri]
  17. path = "../../../core/tauri"
  18. features = [
  19. "api-all",
  20. "cli",
  21. "global-shortcut",
  22. "http-multipart",
  23. "icon-ico",
  24. "icon-png",
  25. "isolation",
  26. "macos-private-api",
  27. "windows7-compat",
  28. "reqwest-client",
  29. "system-tray",
  30. "updater"
  31. ]
  32. [target."cfg(target_os = \"windows\")".dependencies]
  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. 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"