promptforge-webfetch 0.1.0

PromptForge web_fetch tool: fetch a URL and return its main content as markdown
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "promptforge-webfetch"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PromptForge web_fetch tool: fetch a URL and return its main content as markdown"
documentation = "https://cppalliance.github.io/promptforge/"
readme = "README.md"
keywords = [
    "http",
    "fetch",
    "web",
    "ssrf",
    "readability",
]
categories = ["web-programming::http-client"]
license = "BSL-1.0"
repository = "https://github.com/cppalliance/promptforge"

[package.metadata.docs.rs]
all-features = true

[lib]
name = "promptforge_webfetch"
path = "src/lib.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.htmd]
version = "0.5"

[dependencies.ipnet]
version = "2"

[dependencies.mime]
version = "0.3"

[dependencies.promptforge-core]
version = "0.1.0"

[dependencies.readabilityrs]
version = "0.1"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
    "gzip",
    "brotli",
]
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dev-dependencies.axum]
version = "0.8"

[dev-dependencies.flate2]
version = "1"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
]

[lints.clippy]
dbg_macro = "warn"
doc_markdown = "allow"
expect_used = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"