Cargo.toml 1.7 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.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. "tray-icon"
  37. ]
  38. [dev-dependencies.tauri]
  39. path = "../../../core/tauri"
  40. features = ["test"]
  41. [target."cfg(target_os = \"windows\")".dependencies]
  42. window-shadows= "0.2"
  43. [features]
  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"