Cargo.toml 1.6 KB

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