chrome-agent 0.14.0

Browser automation for AI agents. Single binary, zero deps, CDP direct to Chrome.
# 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 = "2024"
name = "chrome-agent"
version = "0.14.0"
build = false
exclude = [
    "tests/js/node_modules/",
    "tests/fixtures/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Browser automation for AI agents. Single binary, zero deps, CDP direct to Chrome."
readme = "README.md"
keywords = [
    "browser",
    "automation",
    "chrome",
    "cdp",
    "ai-agent",
]
categories = [
    "command-line-utilities",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/sderosiaux/chrome-agent"

[[bin]]
name = "chrome-agent"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.dirs]
version = "6"

[dependencies.futures-util]
version = "0.3"

[dependencies.libc]
version = "0.2"

[dependencies.regex-lite]
version = "0.1.9"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "net",
    "io-util",
    "io-std",
    "signal",
    "process",
]

[dependencies.tokio-tungstenite]
version = "0.26"

[dependencies.ureq]
version = "3"
default-features = false

[lints.clippy]
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cognitive_complexity = "allow"
enum_variant_names = "allow"
format_push_string = "allow"
if_same_then_else = "allow"
items_after_statements = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
option_if_let_else = "allow"
redundant_else = "allow"
significant_drop_in_scrutinee = "allow"
similar_names = "allow"
single_match_else = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
used_underscore_binding = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"
unused_must_use = "deny"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true