Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(enterprise,windows): move thiserror out of cfg(not(windows)) dep block

Louis Beaumontd3103ab60c9e
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 2d6d138f3..7a6de8195 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -141,13 +141,16 @@ sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio-rustls"] }
image = "0.25.5"
icalendar = "0.17"
+# Used only by the path-included `ee/desktop-rust/enterprise_sync.rs`. Gated
+# behind enterprise-build via the `dep:thiserror` syntax in [features] so
+# cargo-machete (which doesn't follow `#[path = ...]` imports) doesn't flag
+# this as unused. Stays cross-platform — the EE sync compiles on Windows
+# too, so this CANNOT live under `cfg(not(target_os = "windows"))`.
+thiserror = { version = "1.0", optional = true }
+
# jemalloc — aggressively returns freed pages to OS, reducing RSS bloat
[target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = { version = "0.6", optional = true }
-# Used only by the path-included `ee/desktop-rust/enterprise_sync.rs`. Gated
-# behind enterprise-build via the `dep:thiserror` syntax below so cargo-machete
-# (which doesn't follow `#[path = ...]` imports) doesn't flag this as unused.
-thiserror = { version = "1.0", optional = true }
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-cli = "2.4.1"