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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(redact,audio): restore x86_64-apple-darwin (Intel) builds on ort rc.12
Louis Beaumont3552fcc0c6bd
diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.tomlindex 8a98d49b5..7b2b25482 100644--- a/crates/screenpipe-audio/Cargo.toml+++ b/crates/screenpipe-audio/Cargo.toml@@ -125,8 +125,18 @@ libsamplerate-sys = { workspace = true }cidre = { git = "https://github.com/yury/cidre.git", rev = "8481f3f0dc7dd39bb5be80d9424bfac0cad3801a" }once_cell = { workspace = true }objc = { workspace = true }++# Apple Silicon: bundle ONNX Runtime via the pyke prebuilt (arm64 xcframework).+[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]ort = { workspace = true, features = ["download-binaries", "tls-native"] }+# Intel mac: ort rc.12 ships no x86_64 prebuilt (pyke + upstream ONNX Runtime+# are arm64-only since ~1.20). load-dynamic links against headers only and+# loads the dylib at runtime if present. The ONNX ASR paths (parakeet/qwen3)+# are not enabled on Intel, so no dylib is required for a working build.+[target.'cfg(all(target_os = "macos", target_arch = "x86_64"))'.dependencies]+ort = { workspace = true, default-features = false, features = ["load-dynamic", "api-24"] }+[dev-dependencies]tempfile = { workspace = true }infer = "0.15"diff --git a/crates/screenpipe-redact/Cargo.toml b/crates/screenpipe-redact/Cargo.tomlindex f72d4b8a9..fad35603c 100644--- a/crates/screenpipe-redact/Cargo.toml+++ b/crates/screenpipe-redact/Cargo.toml@@ -66,7 +66,11 @@ default = []# Enable the ONNX-based image redactor (rfdetr) AND the v45 phase 3# text redactor (xlm-roberta-base BIO token classifier). CPU baseline.-onnx-cpu = ["dep:ort", "dep:ndarray", "dep:tokenizers", "dep:serde_json", "ort/download-binaries", "ort/tls-native", "ort/std"]+# NOTE: the ONNX Runtime link strategy (download a pyke prebuilt vs.+# load-dynamic at runtime) is NOT baked in here — it is target-conditional+# in the per-target `[target.….dependencies.ort]` entries below, because+# ort rc.12 ships no x86_64-apple-darwin prebuilt (Intel uses load-dynamic).+onnx-cpu = ["dep:ort", "dep:ndarray", "dep:tokenizers", "dep:serde_json", "ort/tls-native", "ort/std"]# Mac: CoreML execution provider (uses Metal + ANE where available).onnx-coreml = ["onnx-cpu", "ort/coreml"]# Windows: DirectML EP (any DX12-capable GPU, no CUDA toolkit).@@ -87,9 +91,35 @@ mlx-mac = ["dep:screenpipe-rfdetr-mlx"][dependencies.ort]workspace = true+default-features = falsefeatures = ["ndarray"]optional = true+# ONNX Runtime link strategy, per target (additively merged into the base+# entry above). aarch64-mac / linux / windows pull a pyke prebuilt exactly+# as before. Intel mac has no rc.12 prebuilt, so it links against headers+# only (load-dynamic) and loads the bundled libonnxruntime.dylib at runtime.+[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies.ort]+workspace = true+features = ["download-binaries", "copy-dylibs", "tracing", "api-24"]+optional = true++[target.'cfg(target_os = "linux")'.dependencies.ort]+workspace = true+features = ["download-binaries", "copy-dylibs", "tracing", "api-24"]+optional = true++[target.'cfg(target_os = "windows")'.dependencies.ort]+workspace = true+features = ["download-binaries", "copy-dylibs", "tracing", "api-24"]+optional = true++[target.'cfg(all(target_os = "macos", target_arch = "x86_64"))'.dependencies.ort]+workspace = true+default-features = false+features = ["load-dynamic", "api-24", "tracing"]+optional = true+[dependencies.ndarray]workspace = trueoptional = true