VNOX-Client/Cargo.toml

82 lines
2.9 KiB
TOML

[workspace]
resolver = "2"
exclude = ["patches/*"]
[package]
name = "vnox-client"
description = "VNOX native desktop client — Slint, chat and voice"
version = "0.1.0"
edition = "2024"
license = "GPL-3.0"
authors = ["VNOX Contributors"]
repository = "https://github.com/loki5512344/Vnox"
rust-version = "1.94"
default-run = "vnox-client"
[lib]
name = "vnox_client"
path = "src/lib.rs"
[[bin]]
name = "vnox-client"
path = "src/main.rs"
[[bin]]
name = "vnox-e2e-voice"
path = "src/bin/e2e_voice.rs"
[build-dependencies]
slint-build = "=1.18.1"
# Compatible compiler utility before its unused bincode integration was added.
typed-index-collections = "=3.2.3"
[dependencies]
tokio = { version = "1.54", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_bytes = "0.11"
ed25519-dalek = { version = "3", features = ["rand_core"] }
x25519-dalek = { version = "3", features = ["static_secrets"] }
chacha20poly1305 = "0.11"
hkdf = "0.13"
sha2 = "0.11"
rand = "0.10"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
anyhow = "1"
hex = "0.4"
uuid = { version = "1", features = ["v4"] }
argon2 = "0.6"
opus = "0.4"
cpal = "0.18"
dirs = "7"
sys-locale = "0.3"
slint = { version = "=1.18.1", default-features = false, features = ["std", "backend-winit", "renderer-femtovg", "renderer-software", "accessibility", "compat-1-18"] }
nnnoiseless = { version = "0.5.2", default-features = false, optional = true }
image = { version = "0.25.10", default-features = false, features = ["png", "jpeg", "webp"] }
rfd = { version = "0.17.2", default-features = false, features = ["xdg-portal", "wayland"] }
[features]
default = ["screen-capture"]
rnnoise = ["dep:nnnoiseless"]
screen-capture = ["dep:zbus", "dep:gstreamer", "dep:gstreamer-app", "dep:gstreamer-video"]
[target.'cfg(target_os = "linux")'.dependencies]
zbus = { version = "6.1", optional = true }
gstreamer = { version = "0.25.2", optional = true }
gstreamer-app = { version = "0.25.2", optional = true }
gstreamer-video = { version = "0.25.2", optional = true }
# Compatibility backports to maintained zbus 6; see patches/README.md.
[patch.crates-io]
i-slint-backend-winit = { path = "patches/i-slint-backend-winit" }
accesskit_unix = { path = "patches/accesskit_unix" }
accesskit_atspi_common = { path = "patches/accesskit_atspi_common" }
atspi = { path = "patches/atspi" }
atspi-common = { path = "patches/atspi-common" }
atspi-proxies = { path = "patches/atspi-proxies" }
zbus-lockstep = { path = "patches/zbus-lockstep" }
zbus-lockstep-macros = { path = "patches/zbus-lockstep-macros" }
sctk-adwaita = { path = "patches/sctk-adwaita" }