[package]
name = "computer-use"
version = "0.2.0"
edition = "2021"
rust-version = "1.91"
license = "MIT OR Apache-2.0"
description = "Cross-platform desktop automation for agents: screenshots, mouse, keyboard, accessibility, CDP, and isolation."
repository = "https://github.com/lindoelio/computer-use"
homepage = "https://github.com/lindoelio/computer-use"
readme = "README.md"
keywords = ["computer-use", "automation", "gui", "agent", "screenshot"]
categories = [
"command-line-utilities",
"accessibility",
"development-tools::testing",
]
authors = ["Lindoélio Lázaro"]
include = [
"/src/**",
"/tests/**",
"/Cargo.toml",
"/Cargo.lock",
"/README.md",
"/CHANGELOG.md",
"/LICENSE-MIT",
"/LICENSE-APACHE",
"/docs/ROADMAP.md",
"/docs/ISOLATION.md",
"/docs/PACKAGING.md",
"/docs/SKYLIGHT.md",
"/docs/policy.example.toml",
"/packaging/macos/Info.plist",
"/packaging/macos/entitlements.plist",
"/scripts/package-macos-app.sh",
]
[lib]
name = "computer_use"
path = "src/lib.rs"
[[bin]]
name = "computer-use"
path = "src/main.rs"
[features]
default = []
cdp = ["dep:chromiumoxide", "dep:tokio", "dep:futures"]
skylight = []
virtual-display = ["skylight"]
portal = ["dep:ashpd", "dep:pipewire", "dep:reis"]
[dependencies]
base64 = "0.22"
clap = { version = "4", features = ["derive"] }
enigo = "0.3.0"
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
serde = { version = "1", features = ["derive"] }
dirs = "6"
serde_json = "1"
thiserror = "2"
toml = "0.8.23"
xcap = "0.3.3"
chromiumoxide = { version = "0.9.1", optional = true, default-features = false }
tokio = { version = "1", optional = true, default-features = false, features = [
"rt",
] }
futures = { version = "0.3", optional = true, default-features = false, features = [
"std",
] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"
[target.'cfg(not(target_os = "linux"))'.dependencies]
arboard = "3.7.0"
[target.'cfg(target_os = "linux")'.dependencies]
arboard = { version = "3.7.0", default-features = false, features = ["image-data"] }
atspi = { version = "0.30.0", default-features = false, features = ["connection", "proxies"] }
x11rb = { version = "0.13", default-features = false, features = ["allow-unsafe-code", "xtest"] }
tokio = { version = "1", default-features = false, features = ["rt", "macros", "time"] }
ashpd = { version = "0.13.13", default-features = false, optional = true, features = [
"screencast",
"remote_desktop",
"tokio",
] }
pipewire = { version = "0.9", optional = true }
reis = { version = "0.7", default-features = false, optional = true, features = [
"tokio",
] }
[target.'cfg(target_os = "macos")'.dependencies]
block2 = "0.6"
objc2 = "0.6.5"
objc2-app-kit = { version = "0.3.2", default-features = false, features = [
"NSApplication",
"NSBezierPath",
"NSColor",
"NSGraphics",
"NSResponder",
"NSRunningApplication",
"NSScreen",
"NSView",
"NSWindow",
"NSWorkspace",
"block2",
"objc2-core-foundation",
] }
objc2-application-services = { version = "0.3.2", default-features = false, features = [
"AXError",
"AXUIElement",
"AXValue",
"HIServices",
"libc",
] }
objc2-core-foundation = { version = "0.3.2", default-features = false, features = [
"CFArray",
"CFBase",
"CFCGTypes",
"CFDate",
"CFDictionary",
"CFNumber",
"CFMachPort",
"CFRunLoop",
"CFString",
"CFURL",
] }
objc2-core-graphics = { version = "0.3.2", default-features = false, features = [
"CGBitmapContext",
"CGColorSpace",
"CGContext",
"CGDirectDisplay",
"CGDisplayConfiguration",
"CGError",
"CGEvent",
"CGEventSource",
"CGEventTypes",
"CGRemoteOperation",
"CGGeometry",
"CGImage",
"CGSession",
"CGWindow",
"libc",
] }
objc2-core-media = { version = "0.3.2", default-features = false, features = [
"CMSampleBuffer",
] }
dispatch2 = "0.3"
objc2-foundation = { version = "0.3.2", default-features = false, features = [
"NSArray",
"NSBundle",
"NSData",
"NSDictionary",
"NSError",
"NSObject",
"NSProcessInfo",
"NSString",
"NSURL",
] }
objc2-screen-capture-kit = { version = "0.3.2", default-features = false, features = [
"SCError",
"SCScreenshotManager",
"SCShareableContent",
"SCStream",
"block2",
"dispatch2",
"libc",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-core-media",
] }
objc2-vision = { version = "0.3.2", default-features = false, features = [
"VNRecognizeTextRequest",
"VNRequest",
"VNRequestHandler",
"VNObservation",
"VNTypes",
"objc2-core-foundation",
] }
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.62", default-features = false, features = [
"Foundation",
"Globalization",
"Graphics_Imaging",
"Media_Ocr",
"Security_Cryptography",
"Storage_Streams",
"Win32_Foundation",
"Win32_Security",
"Win32_System_Com",
"Win32_System_Threading",
"Win32_System_WinRT",
"Win32_UI_HiDpi",
"Win32_UI_WindowsAndMessaging",
"Win32_Graphics_Gdi",
] }
uiautomation = { version = "0.25.1", default-features = false, features = [
"control",
"pattern",
"input",
] }
windows-capture = "2.0.1"
[profile.release]
lto = "thin"
strip = true