[package]
edition = "2024"
name = "browsing"
version = "0.1.7"
authors = ["Ying Kit WONG"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Browser automation: navigate, click, extract, screenshot. Standalone browser control via CDP."
homepage = "https://github.com/yingkitw/browsing"
documentation = "https://docs.rs/browsing"
readme = "README.md"
keywords = [
"web-browsing",
"automation",
"mcp",
"cdp",
"headless",
]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/browsing"
[features]
cli = ["dep:clap"]
default = [
"cli",
"mcp",
]
mcp = [
"dep:rmcp",
"dep:schemars",
]
[lib]
name = "browsing"
path = "src/lib.rs"
[[bin]]
name = "browsing"
path = "src/bin/cli.rs"
required-features = ["cli"]
[[bin]]
name = "browsing-mcp"
path = "src/bin/mcp_server/main.rs"
required-features = ["mcp"]
[[example]]
name = "basic_navigation"
path = "examples/basic_navigation.rs"
[[example]]
name = "browse_navigate_extract"
path = "examples/browse_navigate_extract.rs"
[[example]]
name = "comprehensive_showcase"
path = "examples/comprehensive_showcase.rs"
[[example]]
name = "custom_actions"
path = "examples/custom_actions.rs"
[[example]]
name = "device_emulation"
path = "examples/device_emulation.rs"
[[example]]
name = "dialog_handling"
path = "examples/dialog_handling.rs"
[[example]]
name = "har_capture"
path = "examples/har_capture.rs"
[[example]]
name = "ibm_content_download"
path = "examples/ibm_content_download.rs"
[[example]]
name = "library_usage"
path = "examples/library_usage.rs"
[[example]]
name = "permissions"
path = "examples/permissions.rs"
[[example]]
name = "raw_cdp"
path = "examples/raw_cdp.rs"
[[example]]
name = "simple_navigation"
path = "examples/simple_navigation.rs"
[[example]]
name = "touch_gestures"
path = "examples/touch_gestures.rs"
[[test]]
name = "actor_test"
path = "tests/actor_test.rs"
[[test]]
name = "agent_service_test"
path = "tests/agent_service_test.rs"
[[test]]
name = "agent_test"
path = "tests/agent_test.rs"
[[test]]
name = "browser_lifecycle_test"
path = "tests/browser_lifecycle_test.rs"
[[test]]
name = "browser_managers_test"
path = "tests/browser_managers_test.rs"
[[test]]
name = "browser_test"
path = "tests/browser_test.rs"
[[test]]
name = "cdp_enhancements_test"
path = "tests/cdp_enhancements_test.rs"
[[test]]
name = "cookie_test"
path = "tests/cookie_test.rs"
[[test]]
name = "dom_extraction_test"
path = "tests/dom_extraction_test.rs"
[[test]]
name = "dom_test"
path = "tests/dom_test.rs"
[[test]]
name = "error_handling_test"
path = "tests/error_handling_test.rs"
[[test]]
name = "error_recovery_test"
path = "tests/error_recovery_test.rs"
[[test]]
name = "file_operations_test"
path = "tests/file_operations_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "integration_workflow_test"
path = "tests/integration_workflow_test.rs"
[[test]]
name = "security_test"
path = "tests/security_test.rs"
[[test]]
name = "tools_handlers_test"
path = "tests/tools_handlers_test.rs"
[[test]]
name = "tools_test"
path = "tests/tools_test.rs"
[[test]]
name = "traits_test"
path = "tests/traits_test.rs"
[[test]]
name = "utils_test"
path = "tests/utils_test.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
"color",
]
optional = true
[dependencies.futures-util]
version = "0.3"
[dependencies.regex]
version = "1.11"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
[dependencies.rmcp]
version = "0.14"
features = [
"server",
"transport-io",
"schemars",
]
optional = true
[dependencies.schemars]
version = "1.0"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.40"
features = [
"rt-multi-thread",
"net",
"process",
"sync",
"fs",
"time",
"io-util",
"signal",
"macros",
]
[dependencies.tokio-tungstenite]
version = "0.24"
features = ["native-tls"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.url]
version = "2.5"
[dependencies.uuid]
version = "1.10"
features = [
"v7",
"serde",
]
[dev-dependencies.tempfile]
version = "3.8"
[dev-dependencies.urlencoding]
version = "2.1"
[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.release-size]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
inherits = "release"
strip = true