Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.65"
  7. license = "Apache-2.0 OR MIT"
  8. [lib]
  9. name = "api_lib"
  10. crate-type = ["staticlib", "cdylib", "rlib"]
  11. [build-dependencies]
  12. tauri-build = { path = "../../../core/tauri-build", features = ["codegen", "isolation"] }
  13. [dependencies]
  14. serde_json = "1.0"
  15. serde = { version = "1.0", features = [ "derive" ] }
  16. tiny_http = "0.11"
  17. log = "0.4"
  18. tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" }
  19. tauri-plugin-sample = { path = "./tauri-plugin-sample/" }
  20. [target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
  21. tauri-plugin-cli = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" }
  22. [patch.crates-io]
  23. tauri = { path = "../../../core/tauri" }
  24. tauri-build = { path = "../../../core/tauri-build" }
  25. [patch.'https://github.com/tauri-apps/tauri']
  26. tauri = { path = "../../../core/tauri" }
  27. tauri-build = { path = "../../../core/tauri-build" }
  28. [dependencies.tauri]
  29. path = "../../../core/tauri"
  30. features = [
  31. "protocol-asset",
  32. "icon-ico",
  33. "icon-png",
  34. "isolation",
  35. "macos-private-api",
  36. "system-tray"
  37. ]
  38. [target."cfg(target_os = \"windows\")".dependencies]
  39. window-shadows= "0.2"
  40. [features]
  41. custom-protocol = [ "tauri/custom-protocol" ]
  42. # default to small, optimized release binaries
  43. [profile.release]
  44. panic = "abort"
  45. codegen-units = 1
  46. lto = true
  47. incremental = false
  48. opt-level = "s"