[package]
edition = "2021"
rust-version = "1.80"
name = "browser-control"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI that manages browsers and exposes them over CDP/BiDi for agent-driven development. Includes an optional MCP server."
readme = "README.md"
keywords = [
"browser",
"cdp",
"bidi",
"mcp",
"automation",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/rickardp/browser-control"
[lib]
name = "browser_control"
path = "src/lib.rs"
[[bin]]
name = "browser-control"
path = "src/main.rs"
[[example]]
name = "fake_browser"
path = "examples/fake_browser.rs"
[[test]]
name = "e2e"
path = "tests/e2e.rs"
[[test]]
name = "list"
path = "tests/list.rs"
[[test]]
name = "mcp"
path = "tests/mcp.rs"
[[test]]
name = "playwright"
path = "tests/playwright.rs"
[[test]]
name = "start"
path = "tests/start.rs"
[dependencies.anyhow]
version = "1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.directories]
version = "5"
[dependencies.fs2]
version = "0.4"
[dependencies.futures-util]
version = "0.3"
[dependencies.libc]
version = "0.2"
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
]
default-features = false
[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sysinfo]
version = "0.32"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"io-util",
"io-std",
"fs",
"process",
"net",
"sync",
"time",
"signal",
]
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["rustls-tls-native-roots"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.url]
version = "2"
[dependencies.which]
version = "6"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.mockito]
version = "1"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = ["test-util"]
[profile.release]
lto = "thin"
codegen-units = 1
strip = true