browsing 0.1.7

Browser automation: navigate, click, extract, screenshot. Standalone browser control via CDP.
Documentation
[package]
name = "browsing"
version = "0.1.7"
edition = "2024"
authors = ["Ying Kit WONG"]
license = "Apache-2.0"
repository = "https://github.com/yingkitw/browsing"
description = "Browser automation: navigate, click, extract, screenshot. Standalone browser control via CDP."
keywords = ["web-browsing", "automation", "mcp", "cdp", "headless"]
documentation = "https://docs.rs/browsing"
homepage = "https://github.com/yingkitw/browsing"

[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"]

[features]
default = ["cli", "mcp"]
cli = ["dep:clap"]
mcp = ["dep:rmcp", "dep:schemars"]

[dependencies]
# CLI (bin only)
clap = { version = "4.5", features = ["derive", "env", "color"], optional = true }
# Async runtime
tokio = { version = "1.40", features = ["rt-multi-thread", "net", "process", "sync", "fs", "time", "io-util", "signal", "macros"] }
async-trait = "0.1"
futures-util = "0.3"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# HTTP client (CDP endpoint checks)
reqwest = { version = "0.12", features = ["json"] }

# Error handling
anyhow = "1.0"
thiserror = "1.0"

# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Utilities
uuid = { version = "1.10", features = ["v7", "serde"] }
chrono = "0.4"
regex = "1.11"
url = "2.5"
base64 = "0.22"

# MCP (concise, lightweight browser API)
rmcp = { version = "0.14", features = ["server", "transport-io", "schemars"], optional = true }
schemars = { version = "1.0", optional = true }

# CDP client (WebSocket for CDP communication)
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }

[dev-dependencies]
tempfile = "3.8"
urlencoding = "2.1"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true

[profile.release-size]
inherits = "release"
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true

[lints.rust]
unsafe_code = "warn"
missing_docs = "warn"

[[example]]
name = "basic_navigation"
path = "examples/basic_navigation.rs"

[[example]]
name = "comprehensive_showcase"
path = "examples/comprehensive_showcase.rs"

[[example]]
name = "simple_navigation"
path = "examples/simple_navigation.rs"

[[example]]
name = "browse_navigate_extract"
path = "examples/browse_navigate_extract.rs"