Cargo.toml
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 11 [dependencies] 12 miniquad = { git = "https://github.com/not-fl3/miniquad" } 13 14 # Currently latest version links to freetype-sys 0.19 but we use 0.21 15 #harfbuzz-sys = "0.6.1" 16 #harfbuzz-sys = { git = "https://github.com/servo/rust-harfbuzz", features = ["bundled"] } 17 harfbuzz-sys = { git = "https://github.com/narodnik/rust-harfbuzz2", features = ["bundled"] } 18 freetype-rs = { version = "0.37.0", features = ["bundled"] } 19 20 image = "0.25.5" 21 qoi = "0.4.1" 22 tracing = "0.1.41" 23 glam = "0.29.2" 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 thiserror = "2.0.12" 31 smol = "2.0.2" 32 atomic_float = "1.1.0" 33 async-channel = "2.5.0" 34 easy-parallel = "3.3.1" 35 rand = "0.8.5" 36 async-lock = "3.4.1" 37 async-broadcast = "0.7.2" 38 futures = "0.3.31" 39 async-recursion = "1.1.1" 40 colored = "3.0.0" 41 #rustpython-vm = "0.3.1" 42 sled-overlay = "0.1.10" 43 url = "2.5.4" 44 semver = "1.0.26" 45 chrono = "0.4.41" 46 async-gen = "0.2.3" 47 async-trait = "0.1.88" 48 blake3 = "1.8.2" 49 clap = { version = "4.5", features = ["derive"] } 50 tracing-subscriber = { version = "0.3.19", default-features = false, features = ["fmt"] } 51 tracing-appender = "0.2.3" 52 # For log files 53 file-rotate = "0.7.6" 54 parking_lot = { version = "0.12.4", features = ["nightly"] } 55 regex = "1.11" 56 parley = { git = "https://github.com/linebender/parley.git" } 57 swash = "0.2.5" 58 zeno = "0.3.3" 59 peniko = "*" 60 61 fluent = "0.17" 62 unic-langid = { version = "0.9", features = ["unic-langid-macros"] } 63 indoc = "2" 64 65 [features] 66 emulate-android = [] 67 enable-plugins = [] 68 enable-filelog = [] 69 # Network debugging. Should be disabled in release. 70 enable-netdebug = [] 71 72 [patch.crates-io] 73 # We can remove these patches. But unfortunately harfbuzz-sys is still linking 74 # the old freetype libs so we need to fix that first. 75 # Fucking servo rust-harfbuzz 76 freetype-rs = { git = "https://github.com/narodnik/freetype-rs" } 77 freetype-sys = { git = "https://github.com/narodnik/freetype-sys2" } 78 79 halo2_proofs = { git="https://github.com/parazyd/halo2", branch="v031" } 80 halo2_gadgets = { git="https://github.com/parazyd/halo2", branch="v031" } 81 # This patch didn't work for me 82 #dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"} 83 84 [target.'cfg(not(target_os = "android"))'.dependencies] 85 dirs = "5.0.1" 86 87 [target.'cfg(target_os = "android")'.dependencies] 88 tracing-android = "0.2.0" 89 # Required by Arti: tor-dirmgr 90 tor-dirmgr = { version="0.32.0", features=["static"] } 91 92 [target.'cfg(target_os = "windows")'.dependencies] 93 # Used by tor-dirmgr 94 #rusqlite = {version = "0.37.0", features = ["bundled"]} 95 tor-dirmgr = { version="0.32.0", features=["static"] } 96 97 [package.metadata.android.activity_attributes] 98 "android:exported" = "true" 99 "android:windowSoftInputMode" = "adjustResize" 100 101 [lints] 102 workspace = true 103 104 [workspace.lints.clippy] 105 106 [package.metadata.android] 107 package_name = "darkfi.darkfi-app" 108 label = "DarkFi" 109 res = "data/res" 110 icon = "@mipmap/ic_launcher" 111 assets = "assets" 112 113 [[package.metadata.android.permission]] 114 name = "android.permission.INTERNET" 115 [[package.metadata.android.permission]] 116 name = "android.permission.ACCESS_NETWORK_STATE" 117 [[package.metadata.android.permission]] 118 name = "android.permission.FOREGROUND_SERVICE" 119 [[package.metadata.android.permission]] 120 name = "android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING" 121 122 [[package.metadata.android.service]] 123 name = ".ForegroundService" 124 foreground_service_type = "remoteMessaging" 125 exported = false