Cargo.toml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [package]
  2. name = "darkfi-app"
  3. description = "DarkFi UI App"
  4. version = "0.1.0"
  5. edition = "2021"
  6. authors = ["Dyne.org foundation <foundation@dyne.org>"]
  7. license = "AGPL-3.0-only"
  8. homepage = "https://dark.fi"
  9. repository = "https://codeberg.org/darkrenaissance/darkfi"
  10. [dependencies]
  11. miniquad = { git = "https://github.com/not-fl3/miniquad" }
  12. # Currently latest version links to freetype-sys 0.19 but we use 0.21
  13. #harfbuzz-sys = "0.6.1"
  14. #harfbuzz-sys = { git = "https://github.com/servo/rust-harfbuzz", features = ["bundled"] }
  15. harfbuzz-sys = { git = "https://github.com/narodnik/rust-harfbuzz2", features = ["bundled"] }
  16. freetype-rs = { version = "0.37.0", features = ["bundled"] }
  17. image = "0.25.2"
  18. log = { version = "0.4", features = ["release_max_level_info"] }
  19. glam = "0.29.0"
  20. zeromq = { version = "0.4.1", default-features = false, features = ["async-std-runtime", "all-transport"] }
  21. darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
  22. #darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
  23. darkfi-serial = {version = "0.4.2", features = ["async"]}
  24. thiserror = "1.0.64"
  25. smol = "2.0.2"
  26. atomic_float = "1.1.0"
  27. async-channel = "2.3.1"
  28. easy-parallel = "3.3.1"
  29. rand = "0.8.5"
  30. async-lock = "3.4.0"
  31. futures = "0.3.31"
  32. async-recursion = "1.1.1"
  33. colored = "2.1.0"
  34. #rustpython-vm = "0.3.1"
  35. sled-overlay = "0.1.6"
  36. url = "2.5.2"
  37. semver = "1.0.23"
  38. chrono = "0.4.38"
  39. async-gen = "0.2.3"
  40. async-trait = "0.1.83"
  41. blake3 = "1.5.4"
  42. simplelog = "0.12.2"
  43. # For log files
  44. file-rotate = "0.7.6"
  45. parking_lot = { version = "0.12", features = ["nightly"] }
  46. regex = "1.11"
  47. [features]
  48. emulate-android = []
  49. enable-plugins = []
  50. enable-filelog = []
  51. # Network debugging. Should be disabled in release.
  52. enable-netdebug = []
  53. [patch.crates-io]
  54. # We can remove these patches. But unfortunately harfbuzz-sys is still linking
  55. # the old freetype libs so we need to fix that first.
  56. # Fucking servo rust-harfbuzz
  57. freetype-rs = { git = "https://github.com/narodnik/freetype-rs" }
  58. freetype-sys = { git = "https://github.com/narodnik/freetype-sys2" }
  59. halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
  60. halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
  61. # This patch didn't work for me
  62. #dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"}
  63. [target.'cfg(not(target_os = "android"))'.dependencies]
  64. arboard = {version = "3.4.1", features=["wayland-data-control"]}
  65. dirs = "5.0.1"
  66. [target.'cfg(target_os = "android")'.dependencies]
  67. android_logger = "0.13.3"
  68. # Required by Arti: tor-dirmgr
  69. rusqlite = {version = "0.32.1", features = ["bundled"]}
  70. tor-dirmgr = {version="0.23.0", features=["static"]}
  71. #android-fileopen = {path = "./android-fileopen/"}
  72. [target.'cfg(target_os = "windows")'.dependencies]
  73. # Used by tor-dirmgr
  74. rusqlite = {version = "0.32", features = ["bundled"]}
  75. [package.metadata.android.activity_attributes]
  76. "android:exported" = "true"
  77. "android:windowSoftInputMode" = "adjustResize"
  78. [lints]
  79. workspace = true
  80. [workspace.lints.clippy]
  81. [package.metadata.android]
  82. package_name = "darkfi.darkfi-app"
  83. label = "DarkFi"
  84. res = "data/res"
  85. icon = "@mipmap/ic_launcher"
  86. assets = "assets"
  87. [[package.metadata.android.permission]]
  88. name = "android.permission.INTERNET"
  89. [[package.metadata.android.permission]]
  90. name = "android.permission.ACCESS_NETWORK_STATE"