Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

build(cli): add Windows dependency for process liveness check

Richie McIlroy6dd335885138
diff --git a/Cargo.lock b/Cargo.lock
index 96775d00c..8ff0ce137 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1081,6 +1081,7 @@ dependencies = [
"tracing",
"tracing-subscriber",
"uuid",
+ "windows 0.60.0",
"workspace-hack",
]
diff --git a/apps/cli/Cargo.toml b/apps/cli/Cargo.toml
index aa5b8365c..d6afc5a4b 100644
--- a/apps/cli/Cargo.toml
+++ b/apps/cli/Cargo.toml
@@ -31,6 +31,12 @@ workspace-hack = { version = "0.1", path = "../../crates/workspace-hack" }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
+[target.'cfg(windows)'.dependencies]
+windows = { workspace = true, features = [
+ "Win32_Foundation",
+ "Win32_System_Threading",
+] }
+
[target.'cfg(target_os = "macos")'.dependencies]
cidre = { workspace = true }
scap-screencapturekit = { path = "../../crates/scap-screencapturekit" }