2021-03-29 15:59:14 +08:00
|
|
|
[package]
|
|
|
|
name = "rustdesk"
|
2024-05-28 17:14:55 +08:00
|
|
|
version = "1.2.5"
|
2021-03-29 15:59:14 +08:00
|
|
|
authors = ["rustdesk <info@rustdesk.com>"]
|
2022-04-20 20:44:48 +08:00
|
|
|
edition = "2021"
|
2021-03-29 15:59:14 +08:00
|
|
|
build= "build.rs"
|
2024-03-14 20:38:57 +08:00
|
|
|
description = "RustDesk Remote Desktop"
|
2022-05-12 17:35:25 +08:00
|
|
|
default-run = "rustdesk"
|
2023-12-29 16:42:23 +08:00
|
|
|
rust-version = "1.75"
|
2022-05-12 17:35:25 +08:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "librustdesk"
|
2023-02-23 18:03:40 +08:00
|
|
|
crate-type = ["cdylib", "staticlib", "rlib"]
|
2022-05-12 17:35:25 +08:00
|
|
|
|
|
|
|
[[bin]]
|
2022-05-13 20:30:22 +08:00
|
|
|
name = "naming"
|
|
|
|
path = "src/naming.rs"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[features]
|
|
|
|
inline = []
|
|
|
|
cli = []
|
2021-08-01 11:01:04 +08:00
|
|
|
use_samplerate = ["samplerate"]
|
|
|
|
use_rubato = ["rubato"]
|
|
|
|
use_dasp = ["dasp"]
|
2022-05-25 20:23:02 +08:00
|
|
|
flutter = ["flutter_rust_bridge"]
|
2022-09-12 12:31:02 +08:00
|
|
|
default = ["use_dasp"]
|
2022-06-09 19:46:41 +08:00
|
|
|
hwcodec = ["scrap/hwcodec"]
|
2024-04-12 17:26:24 +08:00
|
|
|
vram = ["scrap/vram"]
|
2022-09-15 20:40:29 +08:00
|
|
|
mediacodec = ["scrap/mediacodec"]
|
2023-04-18 23:02:37 +08:00
|
|
|
plugin_framework = []
|
2023-05-20 13:20:24 +08:00
|
|
|
linux-pkg-config = ["magnum-opus/linux-pkg-config", "scrap/linux-pkg-config"]
|
2023-10-29 19:50:31 +08:00
|
|
|
unix-file-copy-paste = [
|
|
|
|
"dep:x11-clipboard",
|
|
|
|
"dep:x11rb",
|
|
|
|
"dep:percent-encoding",
|
|
|
|
"dep:once_cell",
|
|
|
|
"clipboard/unix-file-copy-paste",
|
|
|
|
]
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-03-27 03:36:33 +08:00
|
|
|
async-trait = "0.1"
|
2024-03-09 17:52:18 +08:00
|
|
|
whoami = "1.5.0"
|
2022-07-07 01:27:21 +08:00
|
|
|
scrap = { path = "libs/scrap", features = ["wayland"] }
|
2021-03-29 15:59:14 +08:00
|
|
|
hbb_common = { path = "libs/hbb_common" }
|
|
|
|
serde_derive = "1.0"
|
|
|
|
serde = "1.0"
|
|
|
|
serde_json = "1.0"
|
2023-05-30 15:32:19 +08:00
|
|
|
serde_repr = "0.1"
|
2021-03-29 15:59:14 +08:00
|
|
|
cfg-if = "1.0"
|
|
|
|
lazy_static = "1.4"
|
2021-12-26 15:34:10 +08:00
|
|
|
sha2 = "0.10"
|
2021-03-29 15:59:14 +08:00
|
|
|
repng = "0.2"
|
2024-02-14 12:18:49 +08:00
|
|
|
parity-tokio-ipc = { git = "https://github.com/rustdesk-org/parity-tokio-ipc" }
|
|
|
|
magnum-opus = { git = "https://github.com/rustdesk-org/magnum-opus" }
|
2021-08-01 11:01:04 +08:00
|
|
|
dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
|
2022-04-06 10:51:24 +08:00
|
|
|
rubato = { version = "0.12", optional = true }
|
2021-08-01 11:01:04 +08:00
|
|
|
samplerate = { version = "0.2", optional = true }
|
2023-05-11 12:04:38 +08:00
|
|
|
uuid = { version = "1.3", features = ["v4"] }
|
|
|
|
clap = "4.2"
|
|
|
|
rpassword = "7.2"
|
|
|
|
num_cpus = "1.15"
|
|
|
|
bytes = { version = "1.4", features = ["serde"] }
|
2023-03-30 18:24:54 +08:00
|
|
|
default-net = "0.14"
|
2023-03-09 17:22:14 +08:00
|
|
|
wol-rs = "1.0"
|
2023-11-01 17:04:32 +08:00
|
|
|
flutter_rust_bridge = { version = "=1.80", features = ["uuid"], optional = true}
|
2023-03-09 17:22:14 +08:00
|
|
|
errno = "0.3"
|
2023-11-29 17:00:11 +08:00
|
|
|
rdev = { git = "https://github.com/fufesou/rdev" }
|
2023-05-11 12:04:38 +08:00
|
|
|
url = { version = "2.3", features = ["serde"] }
|
2023-03-29 21:59:25 +08:00
|
|
|
crossbeam-queue = "0.3"
|
2023-03-30 18:24:54 +08:00
|
|
|
hex = "0.4"
|
|
|
|
chrono = "0.4"
|
|
|
|
cidr-utils = "0.5"
|
2023-05-11 12:04:38 +08:00
|
|
|
libloading = "0.8"
|
2023-04-20 17:26:17 +08:00
|
|
|
fon = "0.6"
|
2023-06-05 22:25:03 +08:00
|
|
|
zip = "0.6"
|
2023-11-24 16:40:18 +08:00
|
|
|
shutdown_hooks = "0.1"
|
2024-01-19 15:35:58 +08:00
|
|
|
totp-rs = { version = "5.4", default-features = false, features = ["gen_secret", "otpauth"] }
|
2022-05-12 17:35:25 +08:00
|
|
|
|
2022-04-23 02:17:33 +08:00
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "linux")))'.dependencies]
|
2023-04-15 09:41:56 +08:00
|
|
|
cpal = "0.15"
|
2023-03-29 16:59:50 +08:00
|
|
|
ringbuf = "0.3"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
|
|
mac_address = "1.1"
|
2021-07-28 00:00:11 +08:00
|
|
|
sciter-rs = { git = "https://github.com/open-trade/rust-sciter", branch = "dyn" }
|
2023-05-11 12:04:38 +08:00
|
|
|
sys-locale = "0.3"
|
2022-07-07 01:27:21 +08:00
|
|
|
enigo = { path = "libs/enigo", features = [ "with_serde" ] }
|
2022-05-12 17:35:25 +08:00
|
|
|
clipboard = { path = "libs/clipboard" }
|
2021-08-12 01:25:32 +08:00
|
|
|
ctrlc = "3.2"
|
2024-02-21 22:05:27 +08:00
|
|
|
arboard = { git = "https://github.com/fufesou/arboard", branch = "feat/x11_set_conn_timeout", features = ["wayland-data-control"] }
|
2023-03-09 17:22:14 +08:00
|
|
|
system_shutdown = "4.0"
|
2024-01-22 16:29:08 +08:00
|
|
|
qrcode-generator = "4.1"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
2024-04-22 10:37:08 +08:00
|
|
|
winapi = { version = "0.3", features = [
|
|
|
|
"winuser",
|
|
|
|
"wincrypt",
|
|
|
|
"shellscalingapi",
|
|
|
|
"pdh",
|
|
|
|
"synchapi",
|
|
|
|
"memoryapi",
|
|
|
|
"shellapi",
|
|
|
|
"devguid",
|
|
|
|
"setupapi",
|
|
|
|
"cguid",
|
|
|
|
"cfgmgr32",
|
|
|
|
"ioapiset",
|
|
|
|
] }
|
2023-06-05 22:25:03 +08:00
|
|
|
winreg = "0.11"
|
2023-05-11 12:04:38 +08:00
|
|
|
windows-service = "0.6"
|
2024-05-06 15:26:21 +08:00
|
|
|
virtual_display = { path = "libs/virtual_display" }
|
2022-09-26 16:23:09 +08:00
|
|
|
impersonate_system = { git = "https://github.com/21pages/impersonate-system" }
|
2023-03-30 18:24:54 +08:00
|
|
|
shared_memory = "0.12"
|
2023-09-07 21:29:49 +08:00
|
|
|
tauri-winrt-notification = "0.1.2"
|
2024-02-27 15:42:35 +08:00
|
|
|
runas = "1.2"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
|
|
objc = "0.2"
|
|
|
|
cocoa = "0.24"
|
|
|
|
dispatch = "0.2"
|
|
|
|
core-foundation = "0.9"
|
|
|
|
core-graphics = "0.22"
|
2023-03-30 18:24:54 +08:00
|
|
|
include_dir = "0.7"
|
|
|
|
fruitbasket = "0.10"
|
|
|
|
objc_id = "0.1"
|
2022-04-28 21:32:44 +08:00
|
|
|
|
2023-06-05 20:27:48 +08:00
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies]
|
2024-02-16 12:29:32 +08:00
|
|
|
tray-icon = { git = "https://github.com/tauri-apps/tray-icon" }
|
2023-08-19 10:45:55 +08:00
|
|
|
tao = { git = "https://github.com/rustdesk-org/tao", branch = "dev" }
|
2023-02-09 21:28:42 +08:00
|
|
|
image = "0.24"
|
2023-06-30 11:50:16 +08:00
|
|
|
|
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "linux"))'.dependencies]
|
|
|
|
keepawake = { git = "https://github.com/rustdesk-org/keepawake-rs" }
|
2023-02-09 21:28:42 +08:00
|
|
|
|
2023-10-11 19:03:34 +08:00
|
|
|
[target.'cfg(any(target_os = "windows", target_os = "linux"))'.dependencies]
|
|
|
|
wallpaper = { git = "https://github.com/21pages/wallpaper.rs" }
|
|
|
|
|
2024-01-19 16:04:31 +08:00
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
|
|
|
# https://github.com/rustdesk/rustdesk-server-pro/issues/189, using native-tls for better tls support
|
2024-04-25 11:46:21 +08:00
|
|
|
reqwest = { git = "https://github.com/rustdesk-org/reqwest", features = ["blocking", "socks", "json", "native-tls", "gzip"], default-features=false }
|
2024-01-19 16:04:31 +08:00
|
|
|
|
|
|
|
[target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies]
|
2024-04-25 11:46:21 +08:00
|
|
|
reqwest = { git = "https://github.com/rustdesk-org/reqwest", features = ["blocking", "socks", "json", "rustls-tls", "rustls-tls-native-roots", "gzip"], default-features=false }
|
2024-01-19 16:04:31 +08:00
|
|
|
|
2021-03-29 15:59:14 +08:00
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
2023-05-11 12:04:38 +08:00
|
|
|
psimple = { package = "libpulse-simple-binding", version = "2.27" }
|
|
|
|
pulse = { package = "libpulse-binding", version = "2.27" }
|
2021-07-24 18:25:07 +08:00
|
|
|
rust-pulsectl = { git = "https://github.com/open-trade/pulsectl" }
|
2023-05-11 12:04:38 +08:00
|
|
|
async-process = "1.7"
|
2022-07-07 01:27:21 +08:00
|
|
|
mouce = { git="https://github.com/fufesou/mouce.git" }
|
|
|
|
evdev = { git="https://github.com/fufesou/evdev" }
|
2022-10-11 19:52:03 +08:00
|
|
|
dbus = "0.9"
|
|
|
|
dbus-crossroads = "0.5"
|
2024-05-02 13:23:32 +08:00
|
|
|
pam = { git="https://github.com/fufesou/pam" }
|
2023-05-11 12:04:38 +08:00
|
|
|
users = { version = "0.11" }
|
2023-10-29 19:50:31 +08:00
|
|
|
x11-clipboard = {git="https://github.com/clslaid/x11-clipboard", branch = "feat/store-batch", optional = true}
|
|
|
|
x11rb = {version = "0.12", features = ["all-extensions"], optional = true}
|
|
|
|
percent-encoding = {version = "2.3", optional = true}
|
|
|
|
once_cell = {version = "1.18", optional = true}
|
2022-08-02 18:47:29 +08:00
|
|
|
|
2021-03-29 15:59:14 +08:00
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
2023-05-11 12:04:38 +08:00
|
|
|
android_logger = "0.13"
|
2023-05-12 12:40:52 +08:00
|
|
|
jni = "0.21"
|
2023-11-24 16:40:18 +08:00
|
|
|
android-wakelock = { git = "https://github.com/21pages/android-wakelock" }
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[workspace]
|
2023-04-17 14:18:00 +08:00
|
|
|
members = ["libs/scrap", "libs/hbb_common", "libs/enigo", "libs/clipboard", "libs/virtual_display", "libs/virtual_display/dylib", "libs/portable"]
|
2023-04-13 02:06:42 +08:00
|
|
|
exclude = ["vdi/host", "examples/custom_plugin"]
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[package.metadata.winres]
|
2024-03-14 20:38:57 +08:00
|
|
|
LegalCopyright = "Copyright © 2024 Purslane Ltd. All rights reserved."
|
2024-03-07 17:00:32 +08:00
|
|
|
ProductName = "RustDesk"
|
2024-03-15 00:26:53 +08:00
|
|
|
FileDescription = "RustDesk Remote Desktop"
|
2024-03-04 22:19:18 +08:00
|
|
|
OriginalFilename = "rustdesk.exe"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[target.'cfg(target_os="windows")'.build-dependencies]
|
|
|
|
winres = "0.1"
|
2023-11-10 11:37:30 +08:00
|
|
|
winapi = { version = "0.3", features = [ "winnt", "pdh", "synchapi" ] }
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[build-dependencies]
|
|
|
|
cc = "1.0"
|
|
|
|
hbb_common = { path = "libs/hbb_common" }
|
2023-03-09 17:22:14 +08:00
|
|
|
os-version = "0.2"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-09-17 19:26:30 +08:00
|
|
|
hound = "3.5"
|
2021-03-29 15:59:14 +08:00
|
|
|
|
|
|
|
[package.metadata.bundle]
|
|
|
|
name = "RustDesk"
|
|
|
|
identifier = "com.carriez.rustdesk"
|
2022-09-18 11:22:30 +08:00
|
|
|
icon = ["res/32x32.png", "res/128x128.png", "res/128x128@2x.png"]
|
2021-03-29 15:59:14 +08:00
|
|
|
osx_minimum_system_version = "10.14"
|
|
|
|
|
|
|
|
#https://github.com/johnthagen/min-sized-rust
|
|
|
|
[profile.release]
|
2022-05-12 17:35:25 +08:00
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
|
|
|
panic = 'abort'
|
2022-05-25 01:37:01 +08:00
|
|
|
strip = true
|
2021-03-29 15:59:14 +08:00
|
|
|
#opt-level = 'z' # only have smaller size after strip
|
2022-12-08 19:59:37 +08:00
|
|
|
rpath = true
|
2024-01-25 15:46:45 +08:00
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
split-debuginfo = '...' # Platform-specific.
|
|
|
|
#strip = "debuginfo"
|