Cargo.toml 3.2 KB

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