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
thirtyfouris added withoutsomewhere in the dependency tree.default-features = false - reqwest default manager native-tls? rustls
-
Enables reqwest
Optional HTTP client. Not needed if you supply your own.
- rustls default
- native-tls
-
Enables native-tls of reqwest
- component default = thirtyfour-macros
- cdp default cdp-events?
-
Chrome DevTools Protocol — typed commands, the
Cdphandle, andWebDriver::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()andCdpSession. Off by default; pulls intokio-tungstenite.Enables tokio and tokio-tungstenite
tokio-tungstenite:
Optional WebSocket client for the
cdp-eventsandbidifeatures.Affects
cdp::events… - bidi
-
WebDriver BiDi (W3C) — typed commands and event subscription over a WebSocket negotiated via the
webSocketUrl: truecapability. Off by default. Pulls intokio-tungstenite. SeeWebDriver::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
managerfeature. - 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.