Cargo.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.70"
  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-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 = "v2" }
  21. [patch.crates-io]
  22. tauri = { path = "../../../core/tauri" }
  23. tauri-build = { path = "../../../core/tauri-build" }
  24. [dependencies.tauri]
  25. path = "../../../core/tauri"
  26. features = [
  27. "protocol-asset",
  28. "icon-ico",
  29. "icon-png",
  30. "isolation",
  31. "macos-private-api",
  32. "tray-icon"
  33. ]
  34. [dev-dependencies.tauri]
  35. path = "../../../core/tauri"
  36. features = ["test"]
  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"