[package]
edition = "2024"
rust-version = "1.86.0"
name = "servo-fetch"
version = "0.2.2"
build = false
include = [
"src/**/*",
"tests/**/*",
"Cargo.toml",
"Cargo.lock",
"LICENSE",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A browser engine in a binary. Fetch, render, and extract web content powered by Servo."
homepage = "https://github.com/konippi/servo-fetch"
readme = "README.md"
keywords = [
"servo",
"fetch",
"headless",
"browser",
"mcp",
]
categories = [
"command-line-utilities",
"web-programming",
]
license = "MIT"
repository = "https://github.com/konippi/servo-fetch"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/servo-fetch-v{ version }-{ target }.tar.gz"
pkg-fmt = "tgz"
bin-dir = "servo-fetch"
[lib]
name = "servo_fetch"
path = "src/lib.rs"
[[bin]]
name = "servo-fetch"
path = "src/main.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "extract"
path = "tests/extract.rs"
[[test]]
name = "mcp"
path = "tests/mcp.rs"
[dependencies.anyhow]
version = "1"
[dependencies.axum]
version = "0.8"
[dependencies.base64]
version = "0.22"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.dom_query]
version = "0.26"
[dependencies.dom_smoothie]
version = "0.16"
[dependencies.dpi]
version = "0.1"
[dependencies.euclid]
version = "0.22"
[dependencies.htmd]
version = "0.5"
[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false
[dependencies.pdf-extract]
version = "0.10"
[dependencies.rmcp]
version = "1"
features = [
"server",
"transport-io",
"transport-streamable-http-server",
"macros",
]
[dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]
default-features = false
[dependencies.schemars]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.servo]
version = "0.1.0"
features = [
"baked-in-resources",
"js_jit",
]
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"signal",
]
[dependencies.ureq]
version = "3"
[dependencies.url]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.rmcp]
version = "1"
features = [
"client",
"transport-io",
"transport-child-process",
]
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.servo]
version = "0.1.0"
features = [
"baked-in-resources",
"js_jit",
"no-wgl",
]
default-features = false
[lints.clippy]
cast_possible_truncation = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
implicit_clone = "warn"
missing_assert_message = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
redundant_clone = "warn"
redundant_type_annotations = "warn"
use_self = "warn"
[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
[profile.ci]
debug = 0
incremental = false
inherits = "test"
strip = "debuginfo"
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
debug = "line-tables-only"
panic = "abort"