Cargo.toml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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.9"
  18. qoi = "0.4.1"
  19. # AV1 video decoding - rav1d with Rust API from leo030303 fork
  20. # Disable default features to avoid NASM dependency (asm)
  21. rav1d = { git = "https://github.com/leo030303/rav1d", branch = "add-rust-api", default-features = false, features = ["bitdepth_8"] }
  22. tracing = "0.1.44"
  23. glam = "0.30.9"
  24. #zmq = "0.10.0"
  25. #async_zmq = "0.4.0"
  26. zeromq = { version = "0.4.1", default-features = false, features = ["async-std-runtime", "all-transport"] }
  27. darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
  28. #darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
  29. darkfi-serial = {version = "0.5.0", features = ["async"]}
  30. fud = { path = "../fud/fud/" }
  31. bs58 = "0.5.1"
  32. thiserror = "2.0.17"
  33. smol = "2.0.2"
  34. atomic_float = "1.1.0"
  35. async-channel = "2.5.0"
  36. easy-parallel = "3.3.1"
  37. rand = "0.8.5"
  38. async-lock = "3.4.2"
  39. async-broadcast = "0.7.2"
  40. futures = "0.3.31"
  41. async-recursion = "1.1.1"
  42. colored = "3.0.0"
  43. #rustpython-vm = "0.3.1"
  44. sled-overlay = "0.1.14"
  45. url = "2.5.7"
  46. semver = "1.0.27"
  47. chrono = "0.4.42"
  48. async-gen = "0.2.3"
  49. async-trait = "0.1.89"
  50. blake3 = "1.8.2"
  51. clap = { version = "4.5.53", features = ["derive"] }
  52. tracing-subscriber = { version = "0.3.22", default-features = false, features = ["fmt"] }
  53. tracing-appender = "0.2.4"
  54. # For log files
  55. file-rotate = "0.8.0"
  56. parking_lot = { version = "0.12.5", features = ["nightly"] }
  57. regex = "1.12.2"
  58. parley = { git = "https://github.com/linebender/parley.git" }
  59. swash = "0.2.6"
  60. zeno = "0.3.3"
  61. peniko = "0.5.0"
  62. fluent = "0.17.0"
  63. unic-langid = { version = "0.9.6", features = ["unic-langid-macros"] }
  64. indoc = "2.0.7"
  65. [features]
  66. emulate-android = []
  67. enable-plugins = []
  68. enable-filelog = []
  69. # Network debugging. Should be disabled in release.
  70. enable-netdebug = []
  71. [patch.crates-io]
  72. # We can remove these patches. But unfortunately harfbuzz-sys is still linking
  73. # the old freetype libs so we need to fix that first.
  74. # Fucking servo rust-harfbuzz
  75. freetype-rs = { git = "https://github.com/narodnik/freetype-rs" }
  76. freetype-sys = { git = "https://github.com/narodnik/freetype-sys2" }
  77. halo2_proofs = { git="https://github.com/parazyd/halo2", branch="v031" }
  78. halo2_gadgets = { git="https://github.com/parazyd/halo2", branch="v031" }
  79. # This patch didn't work for me
  80. #dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"}
  81. [target.'cfg(not(target_os = "android"))'.dependencies]
  82. dirs = "5.0.1"
  83. [target.'cfg(target_os = "android")'.dependencies]
  84. tracing-android = "0.2.0"
  85. # Required by Arti: tor-dirmgr
  86. tor-dirmgr = { version="0.37.0", features=["static"] }
  87. [target.'cfg(target_os = "ios")'.dependencies]
  88. [target.'cfg(target_os = "windows")'.dependencies]
  89. # Used by tor-dirmgr
  90. #rusqlite = {version = "0.37.0", features = ["bundled"]}
  91. tor-dirmgr = { version="0.37.0", features=["static"] }
  92. [package.metadata.android.activity_attributes]
  93. "android:exported" = "true"
  94. "android:windowSoftInputMode" = "adjustResize"
  95. [lints]
  96. workspace = true
  97. [workspace.lints.clippy]
  98. [package.metadata.android]
  99. package_name = "darkfi.darkfi-app"
  100. label = "DarkFi"
  101. res = "data/res"
  102. icon = "@mipmap/ic_launcher"
  103. assets = "assets"
  104. [[package.metadata.android.permission]]
  105. name = "android.permission.INTERNET"
  106. [[package.metadata.android.permission]]
  107. name = "android.permission.ACCESS_NETWORK_STATE"
  108. [[package.metadata.android.permission]]
  109. name = "android.permission.FOREGROUND_SERVICE"
  110. [[package.metadata.android.permission]]
  111. name = "android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING"
  112. [[package.metadata.android.service]]
  113. name = ".ForegroundService"
  114. foreground_service_type = "remoteMessaging"
  115. exported = false