Cargo.toml 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 = [
  13. "codegen",
  14. "isolation",
  15. ] }
  16. [dependencies]
  17. serde_json = "1.0"
  18. serde = { version = "1.0", features = ["derive"] }
  19. tiny_http = "0.11"
  20. log = "0.4"
  21. tauri-plugin-sample = { path = "./tauri-plugin-sample/" }
  22. [dependencies.tauri]
  23. path = "../../../core/tauri"
  24. features = [
  25. "protocol-asset",
  26. "image-ico",
  27. "image-png",
  28. "isolation",
  29. "macos-private-api",
  30. "tray-icon",
  31. ]
  32. [dev-dependencies.tauri]
  33. path = "../../../core/tauri"
  34. features = ["test"]
  35. [features]
  36. prod = ["tauri/custom-protocol"]
  37. # default to small, optimized release binaries
  38. [profile.release]
  39. panic = "abort"
  40. codegen-units = 1
  41. lto = true
  42. incremental = false
  43. opt-level = "s"