Cargo.toml 969 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. [dependencies.tauri]
  20. path = "../../../core/tauri"
  21. features = [
  22. "protocol-asset",
  23. "image-ico",
  24. "image-png",
  25. "isolation",
  26. "macos-private-api",
  27. "tray-icon"
  28. ]
  29. [dev-dependencies.tauri]
  30. path = "../../../core/tauri"
  31. features = ["test"]
  32. [features]
  33. prod = [ "tauri/custom-protocol" ]
  34. # default to small, optimized release binaries
  35. [profile.release]
  36. panic = "abort"
  37. codegen-units = 1
  38. lto = true
  39. incremental = false
  40. opt-level = "s"