flarer 0.1.0

Rust client and CLI for Cloudflare's Browser Rendering REST API (content, screenshot, PDF, snapshot, markdown, scrape, JSON extraction, links, crawl).
Documentation
# 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.85"
name = "flarer"
version = "0.1.0"
authors = ["cryptopsycho <marcellomargaira@gmail.com>"]
build = false
exclude = [
    "/.github",
    "/outputs",
    "/note.md",
    "/.env",
    "/.env.example",
    "/tests/fixtures/large/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client and CLI for Cloudflare's Browser Rendering REST API (content, screenshot, PDF, snapshot, markdown, scrape, JSON extraction, links, crawl)."
homepage = "https://github.com/CryptoPsicho/flarer"
documentation = "https://docs.rs/flarer"
readme = "README.md"
keywords = [
    "cloudflare",
    "browser-rendering",
    "scraping",
    "screenshot",
    "cli",
]
categories = [
    "command-line-utilities",
    "web-programming::http-client",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/CryptoPsicho/flarer"

[features]
cli = [
    "dep:clap",
    "dep:inquire",
    "dep:dotenv",
    "dep:tracing-subscriber",
]
default = ["cli"]

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

[[bin]]
name = "flarer"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

[[test]]
name = "integration"
path = "tests/integration.rs"

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

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]
default-features = false

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.dotenv]
version = "0.15"
optional = true

[dependencies.inquire]
version = "0.9"
optional = true

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

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.strum]
version = "0.26"
features = ["derive"]

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.40"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.url]
version = "2"

[dev-dependencies.serde_json]
version = "1.0"

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

[dev-dependencies.wiremock]
version = "0.6"

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"