Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

3.6 KB
Raw Blame
[package]
name = "cua-driver-core"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false

[features]
default = ["yaml", "rego", "script"]
yaml = ["dep:regex"]
rego = ["dep:regorus"]
# `run_script` tool: an embedded QuickJS engine (rquickjs and quickjs-ng,
# both MIT). Compiled in by default on every platform, and the tool is
# offered unless the operator turns it off at runtime. Without this feature
# the tool is not offered at all.
script = ["dep:rquickjs"]
# OS credential-store history key provider (Linux Secret Service, Windows Credential Manager).
keyring = ["dep:keyring"]

[dependencies]
cua-driver-contract = { path = "../cua-driver-contract" }
tokio = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
async-trait = "0.1"
serde_yaml_ng = "0.10"
regex = { version = "1", optional = true }
regorus = { version = "0.10.1", optional = true }
# Used by the shared `image_utils` module — pure PNG/JPEG/resize/crosshair
# helpers extracted from `platform-{macos,windows,linux}/src/capture.rs` so
# all three platforms call the same code path.
image = { workspace = true }
# Compatibility constraint for image's zune-jpeg decoder. This dependency is
# intentionally direct so SDK consumers without this workspace lockfile cannot
# resolve the incompatible zune-core 0.5.2 release.
zune-core = { workspace = true }
# Used by the `browser` module's pooled CDP browser-endpoint WebSocket.
# Same versions platform-macos already depends on, to avoid duplicate
# crate versions in the workspace graph. No TLS features: the endpoint
# contract is loopback ws:// only.
tokio-tungstenite = "0.24"
futures-util = "0.3"
uuid = { workspace = true }
base64 = { workspace = true }
sha2 = "0.10"
indexmap = "2"
url = "2.5"
# Canonical (NFD) comparison of app names (`app_names`), as macOS stores
# file names decomposed; already in the graph through `url`'s IDNA support.
icu_normalizer = { version = "2", default-features = false, features = ["compiled_data"] }
chacha20poly1305 = { workspace = true }
hkdf = { workspace = true }
zeroize = { workspace = true }
coset = { workspace = true }
ciborium = { workspace = true }
time = { workspace = true }
getrandom = { workspace = true }
keyring = { version = "4.1.6", default-features = false, features = ["v1"], optional = true }
fs2 = { workspace = true }
hmac = { workspace = true }
# Validate the raw wire payload; serde permits some shapes the schema rejects.
jsonschema = { version = "0.46", default-features = false }
# Private per-request working directory for the optional perception worker.
tempfile = "3"
rquickjs = { version = "0.14", default-features = false, features = ["std"], optional = true }

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

# Used by `cursor_sampler::sample_cursor` to poll the OS mouse position
# during video recording, and by `perception_client::containment` for the
# worker's Job Object. Same version as platform-windows uses to avoid a
# duplicate crate version.
[target.'cfg(windows)'.dependencies]
windows = { version = "0.58", features = [
    "Win32_Foundation",
    "Win32_Security",
    "Win32_System_Diagnostics_ToolHelp",
    "Win32_System_JobObjects",
    "Win32_System_Threading",
    "Win32_UI_WindowsAndMessaging",
] }

[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }

# `fast_path_standalone` lets the std-only fast_path checks compile alone
# with `rustc --test` (no workspace build needed); see fast_path/mod.rs.
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(fast_path_standalone)"] }