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.57"
  7. license = "Apache-2.0 OR MIT"
  8. [lib]
  9. crate-type = ["staticlib", "cdylib", "rlib"]
  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. "reqwest-native-tls-vendored",
  30. "system-tray",
  31. "updater"
  32. ]
  33. [target."cfg(target_os = \"windows\")".dependencies]
  34. window-vibrancy = "0.2"
  35. window-shadows= "0.2"
  36. [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
  37. log = "0.4"
  38. [target.'cfg(target_os = "android")'.dependencies]
  39. android_logger = "0.9.0"
  40. [target.'cfg(target_os = "ios")'.dependencies]
  41. env_logger = "0.9.0"
  42. [features]
  43. default = [ "custom-protocol" ]
  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"