[package]
edition = "2024"
rust-version = "1.89"
name = "computer-use-rs"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform computer-use primitives: read app accessibility trees, take window screenshots, and drive apps with accessibility actions and synthetic input."
readme = "README.md"
keywords = [
"computer-use",
"accessibility",
"automation",
"ui-automation",
"screenshot",
]
categories = [
"accessibility",
"os",
"gui",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/The-Best-Codes/computer-use-rs"
[package.metadata.docs.rs]
targets = [
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "computer_use"
path = "src/lib.rs"
[[example]]
name = "inspect"
path = "examples/inspect.rs"
[[example]]
name = "list_apps"
path = "examples/list_apps.rs"
[[example]]
name = "textedit"
path = "examples/textedit.rs"
[[test]]
name = "fake_backend"
path = "tests/fake_backend.rs"
[[test]]
name = "send"
path = "tests/send.rs"
[dependencies.bitflags]
version = "2.13.2"
[dependencies.image]
version = "0.25.10"
features = ["png"]
default-features = false
[dependencies.thiserror]
version = "2.0.21"
[target.'cfg(target_os = "linux")'.dependencies.atspi]
version = "0.30.0"
features = ["proxies"]
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.x11rb]
version = "0.14.0"
default-features = false
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.19.0"
features = [
"async-io",
"blocking-api",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.2"
[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"
[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 = [
"std",
"libc",
"NSRunningApplication",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-application-services]
version = "0.3.2"
features = [
"std",
"libc",
"HIServices",
"AXUIElement",
"AXValue",
"AXError",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
features = [
"std",
"CFArray",
"CFCGTypes",
"CFDictionary",
"CFNumber",
"CFString",
"CFURL",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-graphics]
version = "0.3.2"
features = [
"std",
"libc",
"CGBitmapContext",
"CGColorSpace",
"CGContext",
"CGEvent",
"CGEventSource",
"CGEventTypes",
"CGImage",
"CGRemoteOperation",
"CGWindow",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3.2"
features = [
"std",
"NSArray",
"NSBundle",
"NSEnumerator",
"NSError",
"NSString",
"NSURL",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-screen-capture-kit]
version = "0.3.2"
features = [
"std",
"block2",
"objc2-core-foundation",
"objc2-core-graphics",
"SCScreenshotManager",
"SCShareableContent",
"SCStream",
]
default-features = false
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.62.2"
features = [
"Win32_Foundation",
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_Storage_FileSystem",
"Win32_Storage_Xps",
"Win32_System_Com",
"Win32_System_Registry",
"Win32_System_Threading",
"Win32_UI_Accessibility",
"Win32_UI_HiDpi",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
]
[lints.clippy]
dbg_macro = "warn"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
multiple_unsafe_ops_per_block = "warn"
print_stdout = "warn"
redundant_pub_crate = "allow"
todo = "warn"
undocumented_unsafe_blocks = "warn"
unwrap_used = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1