Cargo Features

[dependencies]
thirtyfour = { version = "0.37.0", default-features = false, features = ["reqwest", "rustls", "native-tls", "component", "cdp", "cdp-events", "bidi", "manager", "manager-tests"] }
default = cdp, component, manager, reqwest, rustls

These default features are set whenever thirtyfour is added without default-features = false somewhere in the dependency tree.

reqwest default manager native-tls? rustls

Enables reqwest

Optional HTTP client. Not needed if you supply your own.

rustls default

Enables rustls of reqwest

native-tls

Enables native-tls of reqwest

component default = thirtyfour-macros
cdp default cdp-events?

Chrome DevTools Protocol — typed commands, the Cdp handle, and WebDriver::cdp() / WebElement::cdp_*() integrations. On by default.

Affects extensions::cdp, thirtyfour::cdp

cdp-events = cdp

WebSocket-based CDP session with event subscription. Adds Cdp::connect() and CdpSession. Off by default; pulls in tokio-tungstenite.

Enables tokio and tokio-tungstenite

tokio-tungstenite:

Optional WebSocket client for the cdp-events and bidi features.

Affects cdp::events

bidi

WebDriver BiDi (W3C) — typed commands and event subscription over a WebSocket negotiated via the webSocketUrl: true capability. Off by default. Pulls in tokio-tungstenite. See WebDriver::bidi.

Enables tokio and tokio-tungstenite

Affects thirtyfour::bidi

manager default manager-tests? = reqwest

Auto-download and lifetime-manage local chromedriver / geckodriver processes. Pulls in archive-extraction and cache-dir deps. See thirtyfour::manager.

Enables tar, zip, stream of reqwest, fs and process of tokio and dirs, flate2, and fs4

dirs:

Optional dependencies pulled in by the manager feature.

manager-tests = manager

Enable the manager's end-to-end integration tests (under tests/managed.rs).
Off by default — the tests download a real driver and spawn a subprocess, so they should only run in a CI job that doesn't pre-start a driver.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

thirtyfour-macros component