cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! Typed CDP: the protocol's own types, one parameters and one result
//! struct per command, and one payload struct per event.
//!
//! Send a command with [`CdpClient::send`](crate::CdpClient::send), which
//! reads the method name and the result type off the parameters it is
//! handed, so the two cannot be mismatched. Decode an event with
//! [`typed::decode`](crate::typed::decode) or
//! [`SessionEvent::decode`](crate::SessionEvent::decode).
//!
//! ```no_run
//! # use cdp_driver::CdpClient;
//! use cdp_driver::protocol::target;
//!
//! # async fn run(client: &CdpClient) -> cdp_driver::Result<()> {
//! let created = client
//!     .send(target::CreateTargetParams {
//!         url: "about:blank".to_string(),
//!         ..Default::default()
//!     })
//!     .await?;
//! println!("{}", created.target_id);
//! # Ok(())
//! # }
//! ```

// Schema prose is reflowed to fit a doc comment, so a line that happens to
// begin with a dash is not the list item this lint takes it for.
#![allow(clippy::doc_lazy_continuation)]

pub mod accessibility;
pub mod ads;
pub mod animation;
pub mod audits;
pub mod autofill;
pub mod background_service;
pub mod bluetooth_emulation;
pub mod browser;
pub mod cache_storage;
pub mod cast;
pub mod console;
pub mod crash_report_context;
pub mod css;
pub mod debugger;
pub mod device_access;
pub mod device_orientation;
pub mod digital_credentials;
pub mod dom;
pub mod dom_debugger;
pub mod dom_snapshot;
pub mod dom_storage;
pub mod emulation;
pub mod event_breakpoints;
pub mod extensions;
pub mod fed_cm;
pub mod fetch;
pub mod file_system;
pub mod find_in_page;
pub mod headless_experimental;
pub mod heap_profiler;
pub mod indexed_db;
pub mod input;
pub mod inspector;
pub mod io;
pub mod layer_tree;
pub mod log;
pub mod media;
pub mod memory;
pub mod network;
pub mod overlay;
pub mod page;
pub mod performance;
pub mod performance_timeline;
pub mod preload;
pub mod profiler;
pub mod pwa;
pub mod runtime;
pub mod schema;
pub mod security;
pub mod service_worker;
pub mod smart_card_emulation;
pub mod storage;
pub mod system_info;
pub mod target;
pub mod tethering;
pub mod tracing;
pub mod web_audio;
pub mod web_authn;
pub mod web_mcp;