Skip to content

Commit 2c02756

Browse files
Brendonovichschneiderlo
authored andcommitted
desktop: use process-wrap instead of manual job object (anomalyco#13431)
1 parent 0a84d6f commit 2c02756

File tree

7 files changed

+229
-208
lines changed

7 files changed

+229
-208
lines changed

packages/desktop/src-tauri/Cargo.lock

Lines changed: 84 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/desktop/src-tauri/Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
3434

3535
serde = { version = "1", features = ["derive"] }
3636
serde_json = "1"
37-
tokio = "1.48.0"
37+
tokio = { version = "1.48.0", features = ["process"] }
3838
listeners = "0.3"
3939
tauri-plugin-os = "2"
4040
futures = "0.3.31"
@@ -52,6 +52,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
5252
tracing-appender = "0.2"
5353
chrono = "0.4"
5454
tokio-stream = { version = "0.1.18", features = ["sync"] }
55+
process-wrap = { version = "9.0.3", features = ["tokio1"] }
5556

5657
[target.'cfg(target_os = "linux")'.dependencies]
5758
gtk = "0.18.2"
@@ -62,14 +63,6 @@ objc2 = "0.6"
6263
objc2-web-kit = "0.3"
6364

6465

65-
[target.'cfg(windows)'.dependencies]
66-
windows = { version = "0.61", features = [
67-
"Win32_Foundation",
68-
"Win32_System_JobObjects",
69-
"Win32_System_Threading",
70-
"Win32_Security"
71-
] }
72-
7366
[patch.crates-io]
7467
specta = { git = "https://github.com/specta-rs/specta", rev = "591a5f3ddc78348abf4cbb541d599d65306d92b9" }
7568
specta-typescript = { git = "https://github.com/specta-rs/specta", rev = "591a5f3ddc78348abf4cbb541d599d65306d92b9" }

0 commit comments

Comments
 (0)