All your machines, one app. For you and your AI agents: agent sessions, desktops, files, logs and GitHub across your Macs, Linux and Windows machines, with an MCP server.
//! On macOS, the screen capture and input for the desktop view are a little
//! Objective-C (ScreenCaptureKit, CoreGraphics events): src/mac_screen.m.
fn main() {
println!("cargo:rerun-if-changed=src/mac_screen.m");
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() != Ok("macos") {
return;
}
cc::Build::new().file("src/mac_screen.m").flag("-fobjc-arc").flag("-mmacosx-version-min=12.3").compile("muxen_screen");
for framework in ["AppKit", "CoreGraphics", "CoreMedia", "CoreVideo", "Foundation"] {
println!("cargo:rustc-link-lib=framework={framework}");
}
// Weak: the agent still runs (without a desktop) on macOS before 12.3.
println!("cargo:rustc-link-arg=-Wl,-weak_framework,ScreenCaptureKit");
}