Cargo.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.64"
  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. log = "0.4"
  17. #tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" }
  18. tauri-plugin-sample = { path = "./tauri-plugin-sample/" }
  19. [patch.crates-io]
  20. tauri = { path = "../../../core/tauri" }
  21. tauri-build = { path = "../../../core/tauri-build" }
  22. [dependencies.tauri]
  23. path = "../../../core/tauri"
  24. features = [
  25. "api-all",
  26. "cli",
  27. "global-shortcut",
  28. "http-multipart",
  29. "icon-ico",
  30. "icon-png",
  31. "isolation",
  32. "macos-private-api",
  33. "windows7-compat",
  34. "system-tray",
  35. "updater"
  36. ]
  37. [target."cfg(target_os = \"windows\")".dependencies]
  38. window-shadows= "0.2"
  39. [features]
  40. custom-protocol = [ "tauri/custom-protocol" ]
  41. # default to small, optimized release binaries
  42. [profile.release]
  43. panic = "abort"
  44. codegen-units = 1
  45. lto = true
  46. incremental = false
  47. opt-level = "s"