Skip to main content

browser_control/
lib.rs

1//! Library entry point for `browser-control`.
2
3pub mod bidi;
4pub mod cdp;
5pub mod cli;
6pub mod config;
7pub mod detect;
8pub mod dom;
9pub mod errors;
10pub mod launch;
11pub mod mcp;
12pub mod paths;
13pub mod registry;
14pub mod session;
15
16#[cfg(test)]
17pub(crate) mod test_support {
18    use std::sync::Mutex;
19    /// Global lock for tests that mutate process-wide env vars
20    /// (`BROWSER_CONTROL_DATA_DIR`, `BROWSER_CONTROL_CONFIG_DIR`).
21    pub(crate) static ENV_LOCK: Mutex<()> = Mutex::new(());
22}