[package] name = "teamspeach-native" version.workspace = true edition.workspace = true rust-version.workspace = true publish.workspace = true [lib] name = "teamspeach_native" crate-type = ["rlib", "cdylib"] [[bin]] name = "teamspeach" path = "src/main.rs" [features] default = ["skia", "webrtc"] skia = ["slint/renderer-skia"] webrtc = ["dep:libwebrtc", "dep:webrtc-sys", "dep:cxx", "dep:tokio-stream"] test-harness = [] [dependencies] serde.workspace = true serde_json.workspace = true thiserror.workspace = true teamspeach-core = { path = "../core" } tokio.workspace = true i-slint-core = { version = "=1.18.1", default-features = false, features = ["std"] } libwebrtc = { workspace = true, optional = true } webrtc-sys = { workspace = true, optional = true } cxx = { version = "1", optional = true } tokio-stream = { version = "0.1", optional = true } cssparser = "=0.38.0" cssparser-color = "=0.6.0" semver = "1" same-file = "1" katex-native.workspace = true katex-rs.workspace = true mermaid-rs-renderer.workspace = true usvg = { version = "=0.48.1", default-features = false, features = ["text"] } unicode-segmentation = "=1.13.3" base64 = "0.22" sha2 = "0.10" serde_yaml_ng = "0.10" uuid = { version = "1", features = ["v4"] } tempfile = "3" time = { version = "0.3", features = ["formatting", "local-offset"] } reqwest = { version = "0.13", default-features = false, features = ["rustls", "json", "stream"] } regex = "1" roxmltree = "0.21" futures = "0.3" zeroize = "=1.9.1" getrandom = "=0.4.3" fs2 = "=0.4.3" indexmap = { version = "2", features = ["serde"] } image = { version = "=0.25.10", default-features = false, features = ["png", "jpeg", "gif", "webp"] } teamspeach-denoise = { path = "../dsp" } cpal.workspace = true rubato.workspace = true ringbuf = "=0.4.8" hound = "=3.5.1" audioadapter-buffers = "=5.1.0" zip = { version = "=9.5.0", default-features = false, features = ["deflate"] } [target.'cfg(unix)'.dependencies] libc = "0.2" [target.'cfg(windows)'.dependencies] windows-sys = { version = "=0.61.2", features = ["Win32_Foundation", "Win32_Security_Cryptography", "Win32_System_Threading", "Win32_System_Registry"] } [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] security-framework = { version = "=3.7.0", features = ["OSX_10_15"] } [target.'cfg(target_os = "linux")'.dependencies] cpal = { workspace = true, features = ["pipewire", "pulseaudio"] } secret-service = { version = "=5.1.0", default-features = false, features = ["rt-async-io-crypto-rust"] } libwebrtc = { workspace = true, optional = true, features = ["glib-main-loop"] } zbus = { version = "=5.19.0", features = ["blocking-api"] } ksni = { version = "=0.3.7", features = ["blocking"] } directories = "=6.0.0" [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] slint = { workspace = true, features = ["backend-winit", "renderer-software", "system-tray", "raw-window-handle-06", "unstable-winit-030"] } cap-std = "=3.4.5" cap-fs-ext = "=3.4.5" rfd = "=0.15.4" arboard = { version = "=3.7.0", default-features = false } open = "=5.3.2" [target.'cfg(target_os = "ios")'.dependencies] slint = { workspace = true, features = ["backend-winit", "renderer-skia"] } [target.'cfg(target_os = "android")'.dependencies] slint = { workspace = true, features = ["backend-android-activity-06"] } jni = "=0.21.1" # rustls-platform-verifier uses JNI 0.22; keep the app/WebRTC JNI 0.21 ABI unchanged. jni-verifier = { package = "jni", version = "=0.22.4", default-features = false } rustls-platform-verifier = "=0.7.1" i-slint-backend-android-activity = { version = "=1.18.1", default-features = false, features = ["aa-06", "native-activity"] } [build-dependencies] slint-build.workspace = true cc = "1" webrtc-sys-build = "=0.3.21"