[package] name = "tsc-ui" version = "0.1.0" description = "Slint user interface and the desktop binary." edition.workspace = true rust-version.workspace = true license.workspace = true repository.workspace = true publish.workspace = true [lib] name = "tsc_ui" path = "src/lib.rs" [[bin]] name = "tsc-desktop" path = "src/main.rs" [dependencies] anyhow = "1.0.104" chrono = { version = "0.4.45", default-features = false, features = ["clock"] } dirs = "6" png = "0.18" serde = { version = "1", features = ["derive"] } tokio = { version = "1.53.1", features = ["rt-multi-thread", "macros", "time", "sync"] } tracing = "0.1.44" tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } tsc-audio = { path = "../tsc-audio" } tsc-core = { path = "../tsc-core", default-features = false, features = ["audio-device"] } tsc-model = { path = "../tsc-model" } # Crash reports and notices everywhere; hotkey backends on desktop (below). tsc-platform = { path = "../tsc-platform", default-features = false } tsc-query = { path = "../tsc-query" } tsc-store = { path = "../tsc-store" } tsclientlib = { path = "../proto/tsclientlib" } # Desktop: the keyring for passwords, stream media with libvpx, OpenH264, X11 # and PipeWire, global hotkeys through the portal and X11. [target.'cfg(not(target_os = "android"))'.dependencies] slint = { version = "1.18", features = ["renderer-software"] } tsc-core = { path = "../tsc-core", default-features = false, features = ["media-desktop"] } tsc-platform = { path = "../tsc-platform" } tsc-store = { path = "../tsc-store", features = ["keyring"] } # Android (tsc-android): no keyring backend (the app passes Keystore-backed # secrets), no winit/femtovg (the app picks Slint's Android backend), stream # media through MediaCodec and the app's capture source. [target.'cfg(target_os = "android")'.dependencies] slint = { version = "1.18", default-features = false, features = ["std", "compat-1-2", "renderer-software"] } tsc-core = { path = "../tsc-core", default-features = false, features = ["media"] } [dev-dependencies] serde_json = "1" [build-dependencies] slint-build = "1.18" [lints] workspace = true