computer-use 0.2.0

Cross-platform desktop automation for agents: screenshots, mouse, keyboard, accessibility, CDP, and isolation.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.91"
name = "computer-use"
version = "0.2.0"
authors = ["Lindoélio Lázaro"]
build = false
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",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform desktop automation for agents: screenshots, mouse, keyboard, accessibility, CDP, and isolation."
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",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lindoelio/computer-use"

[features]
cdp = [
    "dep:chromiumoxide",
    "dep:tokio",
    "dep:futures",
]
default = []
portal = [
    "dep:ashpd",
    "dep:pipewire",
    "dep:reis",
]
skylight = []
virtual-display = ["skylight"]

[lib]
name = "computer_use"
path = "src/lib.rs"

[[bin]]
name = "computer-use"
path = "src/main.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "cli_doc_matches_help"
path = "tests/cli_doc_matches_help.rs"

[dependencies.base64]
version = "0.22"

[dependencies.chromiumoxide]
version = "0.9.1"
optional = true
default-features = false

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.dirs]
version = "6"

[dependencies.enigo]
version = "0.3.0"

[dependencies.futures]
version = "0.3"
features = ["std"]
optional = true
default-features = false

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
default-features = false

[dependencies.toml]
version = "0.8.23"

[dependencies.xcap]
version = "0.3.3"

[target.'cfg(not(target_os = "linux"))'.dependencies.arboard]
version = "3.7.0"

[target.'cfg(target_os = "linux")'.dependencies.arboard]
version = "3.7.0"
features = ["image-data"]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.ashpd]
version = "0.13.13"
features = [
    "screencast",
    "remote_desktop",
    "tokio",
]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.atspi]
version = "0.30.0"
features = [
    "connection",
    "proxies",
]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.pipewire]
version = "0.9"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.reis]
version = "0.7"
features = ["tokio"]
optional = true
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "time",
]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.x11rb]
version = "0.13"
features = [
    "allow-unsafe-code",
    "xtest",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"

[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6.5"

[target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit]
version = "0.3.2"
features = [
    "NSApplication",
    "NSBezierPath",
    "NSColor",
    "NSGraphics",
    "NSResponder",
    "NSRunningApplication",
    "NSScreen",
    "NSView",
    "NSWindow",
    "NSWorkspace",
    "block2",
    "objc2-core-foundation",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-application-services]
version = "0.3.2"
features = [
    "AXError",
    "AXUIElement",
    "AXValue",
    "HIServices",
    "libc",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
features = [
    "CFArray",
    "CFBase",
    "CFCGTypes",
    "CFDate",
    "CFDictionary",
    "CFNumber",
    "CFMachPort",
    "CFRunLoop",
    "CFString",
    "CFURL",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3.2"
features = [
    "CGBitmapContext",
    "CGColorSpace",
    "CGContext",
    "CGDirectDisplay",
    "CGDisplayConfiguration",
    "CGError",
    "CGEvent",
    "CGEventSource",
    "CGEventTypes",
    "CGRemoteOperation",
    "CGGeometry",
    "CGImage",
    "CGSession",
    "CGWindow",
    "libc",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-media]
version = "0.3.2"
features = ["CMSampleBuffer"]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
    "NSArray",
    "NSBundle",
    "NSData",
    "NSDictionary",
    "NSError",
    "NSObject",
    "NSProcessInfo",
    "NSString",
    "NSURL",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-screen-capture-kit]
version = "0.3.2"
features = [
    "SCError",
    "SCScreenshotManager",
    "SCShareableContent",
    "SCStream",
    "block2",
    "dispatch2",
    "libc",
    "objc2-core-foundation",
    "objc2-core-graphics",
    "objc2-core-media",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.objc2-vision]
version = "0.3.2"
features = [
    "VNRecognizeTextRequest",
    "VNRequest",
    "VNRequestHandler",
    "VNObservation",
    "VNTypes",
    "objc2-core-foundation",
]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.uiautomation]
version = "0.25.1"
features = [
    "control",
    "pattern",
    "input",
]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62"
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",
]
default-features = false

[target.'cfg(target_os = "windows")'.dependencies.windows-capture]
version = "2.0.1"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.release]
lto = "thin"
strip = true