[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] prost-build = "0.14" slint-build = "=1.18.1" # Compatible compiler utility before its unused bincode integration was added. typed-index-collections = "=3.2.3" [dependencies] prost = "0.14" tokio-rustls = "0.26" rustls = "0.23" webpki-roots = "1" 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"] } [dev-dependencies] # Test gateway certificates, and a TLS 1.2 only server for the downgrade test. rcgen = "0.14" rustls = { version = "0.23", features = ["tls12"] } [features] default = ["screen-capture"] rnnoise = ["dep:nnnoiseless"] screen-capture = ["dep:zbus", "dep:gstreamer", "dep:gstreamer-app", "dep:gstreamer-video", "dep:gstreamer-webrtc", "dep:gstreamer-sdp"] [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 } gstreamer-webrtc = { version = "0.25.4", optional = true } gstreamer-sdp = { version = "0.25.3", 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" }