Cargo.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. image = "0.25.9"
  13. qoi = "0.4.1"
  14. tracing = "0.1.44"
  15. glam = "0.30.9"
  16. #zmq = "0.10.0"
  17. #async_zmq = "0.4.0"
  18. zeromq = { version = "0.4.1", default-features = false, features = ["async-std-runtime", "all-transport"] }
  19. darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
  20. #darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
  21. darkfi-serial = {path = "../../src/serial", features = ["async"]}
  22. fud = { path = "../fud/fud/" }
  23. bs58 = "0.5.1"
  24. thiserror = "2.0.17"
  25. smol = "2.0.2"
  26. atomic_float = "1.1.0"
  27. async-channel = "2.5.0"
  28. easy-parallel = "3.3.1"
  29. rand = "0.8.5"
  30. async-lock = "3.4.2"
  31. async-broadcast = "0.7.2"
  32. futures = "0.3.31"
  33. async-recursion = "1.1.1"
  34. colored = "3.0.0"
  35. #rustpython-vm = "0.3.1"
  36. sled-overlay = "0.1.16"
  37. url = "2.5.7"
  38. semver = "1.0.27"
  39. chrono = "0.4.42"
  40. async-gen = "0.2.3"
  41. async-trait = "0.1.89"
  42. blake3 = "1.8.2"
  43. clap = { version = "4.5.53", features = ["derive"] }
  44. tracing-subscriber = { version = "0.3.22", default-features = false, features = ["fmt"] }
  45. tracing-appender = "0.2.4"
  46. # For log files
  47. file-rotate = "0.8.0"
  48. parking_lot = { version = "0.12.5", features = ["nightly"] }
  49. regex = "1.12.2"
  50. parley = { git = "https://github.com/linebender/parley.git" }
  51. swash = "0.2.6"
  52. zeno = "0.3.3"
  53. peniko = "0.5.0"
  54. fluent = "0.17.0"
  55. unic-langid = { version = "0.9.6", features = ["unic-langid-macros"] }
  56. indoc = "2.0.7"
  57. # This makes a HUGE difference to decoding speed.
  58. # Over 160s to like 2s.
  59. [profile.dev.package.rav1d]
  60. opt-level = 3
  61. [features]
  62. default = ["enable-plugins", "schema-app"]
  63. emulate-android = []
  64. enable-plugins = []
  65. enable-filelog = []
  66. # Network debugging. Should be disabled in release.
  67. enable-netdebug = []
  68. # Main app schema layout
  69. schema-app = []
  70. # Dev schema for testing
  71. schema-test = []
  72. [patch.crates-io]
  73. halo2_proofs = { git="https://github.com/parazyd/halo2", branch="v032" }
  74. halo2_gadgets = { git="https://github.com/parazyd/halo2", branch="v032" }
  75. # This patch didn't work for me
  76. #dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"}
  77. [target.'cfg(not(target_os = "android"))'.dependencies]
  78. dirs = "5.0.1"
  79. # AV1 video decoding - rav1d with Rust API from leo030303 fork
  80. # Enable ASM routines for non-Android platforms.
  81. rav1d = { git = "https://github.com/leo030303/rav1d", branch = "add-rust-api", features = ["bitdepth_8"] }
  82. [target.'cfg(target_os = "android")'.dependencies]
  83. tracing-android = "0.2.0"
  84. # Required by Arti: tor-dirmgr
  85. tor-dirmgr = { version="0.37.0", features=["static"] }
  86. # Android uses MediaCodec for hardware-accelerated H.264 decoding instead of rav1d
  87. [target.'cfg(target_os = "windows")'.dependencies]
  88. # Used by tor-dirmgr
  89. #rusqlite = {version = "0.37.0", features = ["bundled"]}
  90. tor-dirmgr = { version="0.37.0", features=["static"] }
  91. [package.metadata.android.activity_attributes]
  92. "android:exported" = "true"
  93. "android:windowSoftInputMode" = "adjustResize"
  94. [lints]
  95. workspace = true
  96. [workspace.lints.clippy]
  97. [package.metadata.android]
  98. package_name = "darkfi.darkfi-app"
  99. label = "DarkFi"
  100. res = "data/res"
  101. icon = "@mipmap/ic_launcher"
  102. assets = "assets"
  103. build_targets = ["aarch64-linux-android", "x86_64-linux-android"]
  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