Files
darkfi/bin/app/Cargo.toml
2025-05-17 19:10:01 +03:00

126 lines
4.0 KiB
TOML

[package]
name = "darkfi-app"
description = "DarkFi UI App"
version = "0.1.0"
edition = "2021"
authors = ["Dyne.org foundation <foundation@dyne.org>"]
license = "AGPL-3.0-only"
homepage = "https://dark.fi"
repository = "https://codeberg.org/darkrenaissance/darkfi"
[dependencies]
#miniquad = { git = "https://github.com/not-fl3/miniquad" }
miniquad = { git = "https://github.com/narodnik/miniquad" }
# Currently latest version links to freetype-sys 0.19 but we use 0.21
#harfbuzz-sys = "0.6.1"
#harfbuzz-sys = { git = "https://github.com/servo/rust-harfbuzz", features = ["bundled"] }
harfbuzz-sys = { git = "https://github.com/narodnik/rust-harfbuzz2", features = ["bundled"] }
freetype-rs = { version = "0.37.0", features = ["bundled"] }
image = "0.25.5"
log = { version = "0.4.27", features = ["release_max_level_info"] }
glam = "0.29.2"
#zmq = "0.10.0"
#async_zmq = "0.4.0"
zeromq = { version = "0.4.1", default-features = false, features = ["async-std-runtime", "all-transport"] }
darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
#darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
darkfi-serial = {version = "0.4.2", features = ["async"]}
thiserror = "2.0.12"
smol = "2.0.2"
atomic_float = "1.1.0"
async-channel = "2.3.1"
easy-parallel = "3.3.1"
rand = "0.8.5"
async-lock = "3.4.0"
futures = "0.3.31"
async-recursion = "1.1.1"
colored = "3.0.0"
#rustpython-vm = "0.3.1"
sled-overlay = "0.1.8"
url = "2.5.4"
semver = "1.0.26"
chrono = "0.4.41"
async-gen = "0.2.3"
async-trait = "0.1.88"
blake3 = "1.8.2"
simplelog = "0.12.2"
# For log files
file-rotate = "0.7.6"
parking_lot = { version = "0.12.3", features = ["nightly"] }
regex = "1.11"
parley = { git = "https://github.com/linebender/parley.git" }
swash = { git = "https://github.com/valadaptive/swash", branch = "tight-bounds" }
# Use same zeno specified by swash
zeno = { git = "https://github.com/valadaptive/zeno", branch = "tight-bounds" }
peniko = "*"
[features]
emulate-android = []
enable-plugins = []
enable-filelog = []
# Network debugging. Should be disabled in release.
enable-netdebug = []
[patch.crates-io]
# We can remove these patches. But unfortunately harfbuzz-sys is still linking
# the old freetype libs so we need to fix that first.
# Fucking servo rust-harfbuzz
freetype-rs = { git = "https://github.com/narodnik/freetype-rs" }
freetype-sys = { git = "https://github.com/narodnik/freetype-sys2" }
halo2_proofs = { git="https://github.com/parazyd/halo2", branch="v4" }
halo2_gadgets = { git="https://github.com/parazyd/halo2", branch="v4" }
# This patch didn't work for me
#dirs-sys = {git="https://github.com/sbechet/dirs-sys-rs.git"}
# Once merged, we can remove this
swash = { git = "https://github.com/valadaptive/swash", branch = "tight-bounds" }
tor-rtcompat = { git = "https://github.com/narodnik/arti" }
tor-rtmock = { git = "https://github.com/narodnik/arti" }
[target.'cfg(not(target_os = "android"))'.dependencies]
dirs = "5.0.1"
[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.13.3"
# Required by Arti: tor-dirmgr
tor-dirmgr = { version="0.29.0", features=["static"] }
[target.'cfg(target_os = "windows")'.dependencies]
# Used by tor-dirmgr
#rusqlite = {version = "0.32.1", features = ["bundled"]}
tor-dirmgr = { version="0.29.0", features=["static"] }
[package.metadata.android.activity_attributes]
"android:exported" = "true"
"android:windowSoftInputMode" = "adjustResize"
[lints]
workspace = true
[workspace.lints.clippy]
[package.metadata.android]
package_name = "darkfi.darkfi-app"
label = "DarkFi"
res = "data/res"
icon = "@mipmap/ic_launcher"
assets = "assets"
[[package.metadata.android.permission]]
name = "android.permission.INTERNET"
[[package.metadata.android.permission]]
name = "android.permission.ACCESS_NETWORK_STATE"
[[package.metadata.android.permission]]
name = "android.permission.FOREGROUND_SERVICE"
[[package.metadata.android.permission]]
name = "android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING"
[[package.metadata.android.service]]
name = ".ForegroundService"
foreground_service_type = "remoteMessaging"
exported = false