fix: Fix sysinfo >=0.29.1 crashing the main view on macOS

This commit is contained in:
Dennis Ploeger
2023-11-08 08:59:27 +01:00
parent 7bafe142ca
commit b9bd79895f
5 changed files with 233 additions and 136 deletions

View File

@@ -38,7 +38,7 @@ libc = "0.2"
dlopen = "0.1"
toml = "0.7"
uuid = { version = "1.3", features = ["v4"] }
sysinfo = "0.29"
sysinfo = {git = "https://github.com/GuillaumeGomez/sysinfo"}
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
mac_address = "1.1"

View File

@@ -26,7 +26,7 @@ use hbb_common::{
supported_decoding::PreferCodec, video_frame, Chroma, CodecAbility, EncodedVideoFrames,
SupportedDecoding, SupportedEncoding, VideoFrame,
},
sysinfo::{System, SystemExt},
sysinfo::{System},
tokio::time::Instant,
ResultType,
};