playwright-cdp 0.3.0

Drive Chromium directly via the Chrome DevTools Protocol (CDP) — no Playwright driver required.
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 = "2024"
rust-version = "1.85"
name = "playwright-cdp"
version = "0.3.0"
authors = ["Liangdi <wu@liangdi.me>"]
build = false
exclude = [
    "cliff.toml",
    "justfile",
    "release.toml",
    "/examples_out",
    "/demo.png",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Drive Chromium directly via the Chrome DevTools Protocol (CDP) — no Playwright driver required."
homepage = "https://github.com/liangdi/playwright-cdp"
documentation = "https://docs.rs/playwright-cdp"
readme = "README.md"
keywords = [
    "playwright",
    "cdp",
    "chromium",
    "browser-automation",
    "devtools",
]
categories = [
    "web-programming",
    "development-tools::testing",
    "api-bindings",
]
license = "Apache-2.0"
repository = "https://github.com/liangdi/playwright-cdp"

[features]
screenshot-diff = ["dep:image"]

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

[[example]]
name = "accessibility_example"
path = "examples/accessibility_example.rs"

[[example]]
name = "api_request"
path = "examples/api_request.rs"

[[example]]
name = "api_request_config"
path = "examples/api_request_config.rs"

[[example]]
name = "assertions"
path = "examples/assertions.rs"

[[example]]
name = "assertions_extended"
path = "examples/assertions_extended.rs"

[[example]]
name = "bindings"
path = "examples/bindings.rs"

[[example]]
name = "clock_example"
path = "examples/clock_example.rs"

[[example]]
name = "context_events_example"
path = "examples/context_events_example.rs"

[[example]]
name = "contexts"
path = "examples/contexts.rs"

[[example]]
name = "coverage_example"
path = "examples/coverage_example.rs"

[[example]]
name = "demo"
path = "examples/demo.rs"

[[example]]
name = "dialogs_downloads"
path = "examples/dialogs_downloads.rs"

[[example]]
name = "expect_events"
path = "examples/expect_events.rs"

[[example]]
name = "frame_actions_example"
path = "examples/frame_actions_example.rs"

[[example]]
name = "frames"
path = "examples/frames.rs"

[[example]]
name = "har_example"
path = "examples/har_example.rs"

[[example]]
name = "interactions"
path = "examples/interactions.rs"

[[example]]
name = "js_handle_example"
path = "examples/js_handle_example.rs"

[[example]]
name = "network"
path = "examples/network.rs"

[[example]]
name = "network_details_example"
path = "examples/network_details_example.rs"

[[example]]
name = "page_capture"
path = "examples/page_capture.rs"

[[example]]
name = "persistent_context"
path = "examples/persistent_context.rs"

[[example]]
name = "route_fetch"
path = "examples/route_fetch.rs"

[[example]]
name = "video_example"
path = "examples/video_example.rs"

[[example]]
name = "web_storage_example"
path = "examples/web_storage_example.rs"

[[example]]
name = "websocket_example"
path = "examples/websocket_example.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.dirs]
version = "6"

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

[dependencies.image]
version = "0.25"
features = ["png"]
optional = true
default-features = false

[dependencies.parking_lot]
version = "0.12"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "query",
    "form",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "env-filter",
]