remove sys-info crate for mobile because which depends on libunwind, it

is not in ndk r22b
This commit is contained in:
rustdesk 2023-03-11 01:34:33 +08:00
parent 451d54d768
commit 8a27c55db2
2 changed files with 4 additions and 4 deletions

View File

@ -34,11 +34,11 @@ tokio-socks = { git = "https://github.com/open-trade/tokio-socks" }
chrono = "0.4"
backtrace = "0.3"
libc = "0.2"
sysinfo = "0.28"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
mac_address = "1.1"
machine-uid = "0.2"
sysinfo = "0.28"
[features]
quic = []
@ -55,4 +55,4 @@ osascript = "0.3.0"
[dev-dependencies]
toml = "0.7"
serde_json = "1.0"
serde_json = "1.0"

View File

@ -251,7 +251,7 @@ pub async fn start(postfix: &str) -> ResultType<()> {
pub async fn new_listener(postfix: &str) -> ResultType<Incoming> {
let path = Config::ipc_path(postfix);
#[cfg(not(windows))]
#[cfg(not(any(windows, target_os = "android", target_os = "ios")))]
check_pid(postfix).await;
let mut endpoint = Endpoint::new(path.clone());
match SecurityAttributes::allow_everyone_create() {
@ -541,7 +541,7 @@ fn get_pid_file(postfix: &str) -> String {
format!("{}.pid", path)
}
#[cfg(not(windows))]
#[cfg(not(any(windows, target_os = "android", target_os = "ios")))]
async fn check_pid(postfix: &str) {
let pid_file = get_pid_file(postfix);
if let Ok(mut file) = File::open(&pid_file) {