Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. [patch.crates-io]
  9. wry = { git = "https://github.com/tauri-apps/wry", branch = "dev" }
  10. tao = { git = "https://github.com/tauri-apps/tao", branch = "dev" }
  11. [lib]
  12. crate-type = ["staticlib", "cdylib", "rlib"]
  13. [build-dependencies]
  14. tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isolation"] }
  15. [dependencies]
  16. serde_json = "1.0"
  17. serde = { version = "1.0", features = [ "derive" ] }
  18. tiny_http = "0.11"
  19. [dependencies.tauri]
  20. path = "../../../core/tauri"
  21. features = [
  22. "api-all",
  23. "cli",
  24. "global-shortcut",
  25. "http-multipart",
  26. "icon-ico",
  27. "icon-png",
  28. "isolation",
  29. "macos-private-api",
  30. "windows7-compat",
  31. "reqwest-client",
  32. "reqwest-native-tls-vendored",
  33. "system-tray",
  34. "updater"
  35. ]
  36. [target."cfg(target_os = \"windows\")".dependencies]
  37. window-vibrancy = "0.2"
  38. window-shadows= "0.2"
  39. [target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
  40. log = "0.4"
  41. [target.'cfg(target_os = "android")'.dependencies]
  42. android_logger = "0.9.0"
  43. [target.'cfg(target_os = "ios")'.dependencies]
  44. env_logger = "0.9.0"
  45. [features]
  46. default = [ "custom-protocol" ]
  47. custom-protocol = [ "tauri/custom-protocol" ]
  48. # default to small, optimized release binaries
  49. [profile.release]
  50. panic = "abort"
  51. codegen-units = 1
  52. lto = true
  53. incremental = false
  54. opt-level = "s"