Cargo.toml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/narodnik/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.5"
  18. log = { version = "0.4.27", features = ["release_max_level_info"] }
  19. glam = "0.29.2"
  20. #zmq = "0.10.0"
  21. #async_zmq = "0.4.0"
  22. zeromq = { version = "0.4.1", default-features = false, features = ["async-std-runtime", "all-transport"] }
  23. darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
  24. #darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
  25. darkfi-serial = {version = "0.4.2", features = ["async"]}
  26. thiserror = "2.0.12"
  27. smol = "2.0.2"
  28. atomic_float = "1.1.0"
  29. async-channel = "2.3.1"
  30. easy-parallel = "3.3.1"
  31. rand = "0.8.5"
  32. async-lock = "3.4.0"
  33. futures = "0.3.31"
  34. async-recursion = "1.1.1"
  35. colored = "3.0.0"
  36. #rustpython-vm = "0.3.1"
  37. sled-overlay = "0.1.7"
  38. url = "2.5.4"
  39. semver = "1.0.26"
  40. chrono = "0.4.40"
  41. async-gen = "0.2.3"
  42. async-trait = "0.1.88"
  43. blake3 = "1.8.1"
  44. simplelog = "0.12.2"
  45. # For log files
  46. file-rotate = "0.7.6"
  47. parking_lot = { version = "0.12.3", features = ["nightly"] }
  48. regex = "1.11"
  49. parley = { git = "https://github.com/linebender/parley.git" }
  50. swash = { git = "https://github.com/valadaptive/swash", branch = "tight-bounds" }
  51. # Use same zeno specified by swash
  52. zeno = { git = "https://github.com/valadaptive/zeno", branch = "tight-bounds" }
  53. peniko = "*"
  54. [features]
  55. emulate-android = []
  56. enable-plugins = []
  57. enable-filelog = []
  58. # Network debugging. Should be disabled in release.
  59. enable-netdebug = []
  60. [patch.crates-io]
  61. # We can remove these patches. But unfortunately harfbuzz-sys is still linking
  62. # the old freetype libs so we need to fix that first.
  63. # Fucking servo rust-harfbuzz
  64. freetype-rs = { git = "https://github.com/narodnik/freetype-rs" }
  65. freetype-sys = { git = "https://github.com/narodnik/freetype-sys2" }
  66. halo2_proofs = { git="https://github.com/parazyd/halo2", branch="v4" }
  67. halo2_gadgets = { git="https://github.com/parazyd/halo2", branch="v4" }
  68. # This patch didn't work for me
  69. #dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"}
  70. # Once merged, we can remove this
  71. swash = { git = "https://github.com/valadaptive/swash", branch = "tight-bounds" }
  72. tor-rtcompat = { git = "https://github.com/narodnik/arti" }
  73. tor-rtmock = { git = "https://github.com/narodnik/arti" }
  74. [target.'cfg(not(target_os = "android"))'.dependencies]
  75. dirs = "5.0.1"
  76. [target.'cfg(target_os = "android")'.dependencies]
  77. android_logger = "0.13.3"
  78. # Required by Arti: tor-dirmgr
  79. tor-dirmgr = { version="0.29.0", features=["static"] }
  80. [target.'cfg(target_os = "windows")'.dependencies]
  81. # Used by tor-dirmgr
  82. #rusqlite = {version = "0.32.1", features = ["bundled"]}
  83. tor-dirmgr = { version="0.29.0", features=["static"] }
  84. [package.metadata.android.activity_attributes]
  85. "android:exported" = "true"
  86. "android:windowSoftInputMode" = "adjustResize"
  87. [lints]
  88. workspace = true
  89. [workspace.lints.clippy]
  90. [package.metadata.android]
  91. package_name = "darkfi.darkfi-app"
  92. label = "DarkFi"
  93. res = "data/res"
  94. icon = "@mipmap/ic_launcher"
  95. assets = "assets"
  96. [[package.metadata.android.permission]]
  97. name = "android.permission.INTERNET"
  98. [[package.metadata.android.permission]]
  99. name = "android.permission.ACCESS_NETWORK_STATE"
  100. [[package.metadata.android.permission]]
  101. name = "android.permission.FOREGROUND_SERVICE"
  102. [[package.metadata.android.permission]]
  103. name = "android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING"
  104. [[package.metadata.android.service]]
  105. name = ".ForegroundService"
  106. foreground_service_type = "remoteMessaging"
  107. exported = false