Cargo.toml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.59"
  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. [dependencies.tauri]
  17. path = "../../../core/tauri"
  18. features = [
  19. "api-all",
  20. "cli",
  21. "global-shortcut",
  22. "http-multipart",
  23. "icon-ico",
  24. "icon-png",
  25. "isolation",
  26. "macos-private-api",
  27. "windows7-compat",
  28. "reqwest-client",
  29. "system-tray",
  30. "updater"
  31. ]
  32. [target."cfg(target_os = \"windows\")".dependencies]
  33. window-vibrancy = "0.2"
  34. window-shadows= "0.2"
  35. [features]
  36. default = [ "custom-protocol" ]
  37. custom-protocol = [ "tauri/custom-protocol" ]
  38. # default to small, optimized release binaries
  39. [profile.release]
  40. panic = "abort"
  41. codegen-units = 1
  42. lto = true
  43. incremental = false
  44. opt-level = "s"