[package]
edition = "2021"
rust-version = "1.85"
name = "bao_cdp_client"
version = "0.1.0"
authors = ["Bao Project"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified browser control client over CDP — integrates servo (in-memory) and external Chrome (WebSocket), Playwright-style high-level API."
documentation = "https://docs.rs/bao_cdp_client"
readme = false
keywords = [
"cdp",
"chrome-devtools",
"servo",
"browser-automation",
"playwright",
]
categories = [
"api-bindings",
"asynchronous",
"development-tools::testing",
"web-programming",
]
license = "MIT OR MPL-2.0"
repository = "https://github.com/putao520/bao"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "bao_cdp_client"
path = "src/lib.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "cookies"
path = "examples/cookies.rs"
[[example]]
name = "event_listener"
path = "examples/event_listener.rs"
[[example]]
name = "external_chrome"
path = "examples/external_chrome.rs"
[[example]]
name = "multi_page"
path = "examples/multi_page.rs"
[[test]]
name = "b_class_injection_defense"
path = "tests/b_class_injection_defense.rs"
[[test]]
name = "bridge_a_class"
path = "tests/bridge_a_class.rs"
[[test]]
name = "bridge_dispatcher"
path = "tests/bridge_dispatcher.rs"
[[test]]
name = "bridge_e_class"
path = "tests/bridge_e_class.rs"
[[test]]
name = "cdp_conformance"
path = "tests/cdp_conformance/main.rs"
[[test]]
name = "cdp_full_chain_tests"
path = "tests/cdp_full_chain_tests.rs"
[[test]]
name = "cdp_timing_tests"
path = "tests/cdp_timing_tests.rs"
[[test]]
name = "d_class_local_state"
path = "tests/d_class_local_state.rs"
[[test]]
name = "debugger_sm_api_tests"
path = "tests/debugger_sm_api_tests.rs"
[[test]]
name = "e2e_external_chrome"
path = "tests/e2e_external_chrome.rs"
[[test]]
name = "e2e_internal_servo"
path = "tests/e2e_internal_servo.rs"
[[test]]
name = "e2e_playwright_compat"
path = "tests/e2e_playwright_compat.rs"
[[test]]
name = "event_coverage_full"
path = "tests/event_coverage_full.rs"
[[test]]
name = "event_translation"
path = "tests/event_translation.rs"
[[test]]
name = "injection_defense_full"
path = "tests/injection_defense_full.rs"
[[test]]
name = "public_api_complete"
path = "tests/public_api_complete.rs"
[[test]]
name = "regression_no_eval_injection"
path = "tests/regression_no_eval_injection.rs"
[[test]]
name = "transport_in_memory"
path = "tests/transport_in_memory.rs"
[[test]]
name = "transport_ws_handshake"
path = "tests/transport_ws_handshake.rs"
[[test]]
name = "url_scheme_routing"
path = "tests/url_scheme_routing.rs"
[dependencies.bao_cdp]
version = "0.1.0"
[dependencies.bao_engine]
version = "0.1.0"
[dependencies.bun_base64]
version = "0.1.0"
[dependencies.bun_event_loop]
version = "0.1.0"
[dependencies.bun_url]
version = "0.1.0"
[dependencies.bun_uws]
version = "0.1.0"
[dependencies.cdp-protocol]
version = "0.3"
[dependencies.log]
version = "0.4"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"