feat: 截图线程 + 编码线程。

每个显示器分别使用一个截图线程和一个编码(png+base64)线程。避免程序不明原因崩溃。
This commit is contained in:
2023-03-18 23:14:59 +08:00
parent 6ea8325b15
commit f92883199c
8 changed files with 478 additions and 28 deletions

View File

@ -22,7 +22,10 @@ core-graphics = "0.22.3"
display-info = "0.4.1"
png = "0.17.7"
anyhow = "1.0.69"
tracing = "0.1.37"
tokio = {version = "1.26.0", features = ["full"] }
paris = { version = "1.5", features = ["timestamps", "macros"] }
log = "0.4.17"
env_logger = "0.10.0"
[features]
# this feature is used for production builds or when `devPath` points to the filesystem