rustdesk/Cargo.toml

145 lines
4.2 KiB
TOML
Raw Normal View History

2021-03-29 10:59:14 +03:00
[package]
name = "rustdesk"
2022-06-09 14:45:53 +03:00
version = "1.1.10"
2021-03-29 10:59:14 +03:00
authors = ["rustdesk <info@rustdesk.com>"]
edition = "2021"
2021-03-29 10:59:14 +03:00
build= "build.rs"
description = "A remote control software."
2022-05-12 12:35:25 +03:00
default-run = "rustdesk"
[lib]
name = "librustdesk"
2022-04-27 05:45:20 +03:00
crate-type = ["cdylib", "staticlib", "rlib"]
2022-05-12 12:35:25 +03:00
[[bin]]
2022-05-13 15:30:22 +03:00
name = "naming"
path = "src/naming.rs"
2021-03-29 10:59:14 +03:00
[features]
inline = []
2022-05-12 12:35:25 +03:00
hbbs = []
2021-03-29 10:59:14 +03:00
cli = []
with_rc = ["simple_rc"]
appimage = []
2021-08-01 06:01:04 +03:00
use_samplerate = ["samplerate"]
use_rubato = ["rubato"]
use_dasp = ["dasp"]
hwcodec = ["scrap/hwcodec"]
2021-08-01 06:01:04 +03:00
default = ["use_dasp"]
2021-03-29 10:59:14 +03:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
2021-12-26 10:34:10 +03:00
whoami = "1.2"
2021-03-29 10:59:14 +03:00
scrap = { path = "libs/scrap" }
hbb_common = { path = "libs/hbb_common" }
serde_derive = "1.0"
serde = "1.0"
serde_json = "1.0"
cfg-if = "1.0"
lazy_static = "1.4"
2021-12-26 10:34:10 +03:00
sha2 = "0.10"
2021-03-29 10:59:14 +03:00
repng = "0.2"
libc = "0.2"
2021-07-24 13:25:07 +03:00
parity-tokio-ipc = { git = "https://github.com/open-trade/parity-tokio-ipc" }
2022-04-21 17:16:15 +03:00
flexi_logger = { version = "0.22", features = ["async", "use_chrono_for_offset"] }
2021-03-29 10:59:14 +03:00
runas = "0.2"
2021-07-24 13:25:07 +03:00
magnum-opus = { git = "https://github.com/open-trade/magnum-opus" }
2021-08-01 06:01:04 +03:00
dasp = { version = "0.11", features = ["signal", "interpolate-linear", "interpolate"], optional = true }
2022-04-06 05:51:24 +03:00
rubato = { version = "0.12", optional = true }
2021-08-01 06:01:04 +03:00
samplerate = { version = "0.2", optional = true }
2021-03-29 10:59:14 +03:00
async-trait = "0.1"
2022-05-12 12:35:25 +03:00
uuid = { version = "1.0", features = ["v4"] }
2022-01-15 08:47:57 +03:00
clap = "3.0"
2022-04-06 05:51:24 +03:00
rpassword = "6.0"
base64 = "0.13"
sysinfo = "0.23"
num_cpus = "1.13"
2021-03-29 10:59:14 +03:00
2022-05-12 12:35:25 +03:00
[target.'cfg(not(target_os = "linux"))'.dependencies]
2022-05-16 10:46:09 +03:00
reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features=false }
2022-05-12 12:35:25 +03:00
[target.'cfg(not(any(target_os = "android", target_os = "linux")))'.dependencies]
cpal = "0.13.5"
2021-03-29 10:59:14 +03:00
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
machine-uid = "0.2"
mac_address = "1.1"
2021-07-27 19:00:11 +03:00
sciter-rs = { git = "https://github.com/open-trade/rust-sciter", branch = "dyn" }
2022-05-12 12:35:25 +03:00
sys-locale = "0.2"
enigo = { path = "libs/enigo" }
clipboard = { path = "libs/clipboard" }
rdev = { git = "https://github.com/open-trade/rdev" }
2021-08-11 20:25:32 +03:00
ctrlc = "3.2"
arboard = "2.0"
2022-05-12 12:35:25 +03:00
#minreq = { version = "2.4", features = ["punycode", "https-native"] }
2021-03-29 10:59:14 +03:00
[target.'cfg(target_os = "windows")'.dependencies]
2022-05-12 12:35:25 +03:00
#systray = { git = "https://github.com/open-trade/systray-rs" }
trayicon = { version = "0.1", features = ["winit"] }
# > 0.25 not work with trayicon
winit = "0.25"
2021-03-29 10:59:14 +03:00
winapi = { version = "0.3", features = ["winuser"] }
2021-12-26 10:34:10 +03:00
winreg = "0.10"
windows-service = "0.4"
virtual_display = { path = "libs/virtual_display" }
2021-03-29 10:59:14 +03:00
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"
cocoa = "0.24"
dispatch = "0.2"
core-foundation = "0.9"
core-graphics = "0.22"
include_dir = "0.7.2"
tray-item = "0.7" # looks better than trayicon
2021-03-29 10:59:14 +03:00
[target.'cfg(target_os = "linux")'.dependencies]
psimple = { package = "libpulse-simple-binding", version = "2.25" }
pulse = { package = "libpulse-binding", version = "2.26" }
2021-07-24 13:25:07 +03:00
rust-pulsectl = { git = "https://github.com/open-trade/pulsectl" }
2022-05-12 12:35:25 +03:00
async-process = "1.3"
2021-03-29 10:59:14 +03:00
[target.'cfg(target_os = "android")'.dependencies]
2022-04-06 05:51:24 +03:00
android_logger = "0.11"
2022-07-14 18:26:03 +03:00
jni = "0.19"
2021-03-29 10:59:14 +03:00
[target.'cfg(any(target_os = "android", target_os = "ios"))'.dependencies]
flutter_rust_bridge = "1.30.0"
2021-03-29 10:59:14 +03:00
[workspace]
members = ["libs/scrap", "libs/hbb_common", "libs/enigo", "libs/clipboard", "libs/virtual_display", "libs/simple_rc"]
2021-03-29 10:59:14 +03:00
[package.metadata.winres]
2022-05-12 12:35:25 +03:00
LegalCopyright = "Copyright © 2022 Purslane, Inc."
2021-03-29 10:59:14 +03:00
# this FileDescription overrides package.description
FileDescription = "RustDesk"
[target.'cfg(target_os="windows")'.build-dependencies]
winres = "0.1"
winapi = { version = "0.3", features = [ "winnt" ] }
[build-dependencies]
cc = "1.0"
hbb_common = { path = "libs/hbb_common" }
simple_rc = { path = "libs/simple_rc", optional = true }
flutter_rust_bridge_codegen = "1.30.0"
2021-03-29 10:59:14 +03:00
[dev-dependencies]
hound = "3.4"
[package.metadata.bundle]
name = "RustDesk"
identifier = "com.carriez.rustdesk"
icon = ["32x32.png", "128x128.png", "128x128@2x.png"]
2022-05-12 12:35:25 +03:00
deb_depends = ["libgtk-3-0", "libxcb-randr0", "libxdo3", "libxfixes3", "libxcb-shape0", "libxcb-xfixes0", "libasound2", "libsystemd0", "pulseaudio", "python3-pip", "curl"]
2021-03-29 10:59:14 +03:00
osx_minimum_system_version = "10.14"
resources = ["mac-tray.png"]
2021-03-29 10:59:14 +03:00
#https://github.com/johnthagen/min-sized-rust
[profile.release]
2022-05-12 12:35:25 +03:00
lto = true
codegen-units = 1
panic = 'abort'
strip = true
2021-03-29 10:59:14 +03:00
#opt-level = 'z' # only have smaller size after strip