# 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 = "html-to-markdown-cli"
version = "3.5.3"
authors = ["Na'aman Hirschfeld <naaman@kreuzberg.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for html-to-markdown - high-performance HTML to Markdown converter"
homepage = "https://kreuzberg.dev"
documentation = "https://docs.rs/html-to-markdown-rs"
readme = "README.md"
keywords = [
    "html",
    "markdown",
    "cli",
    "converter",
    "html5ever",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/kreuzberg-dev/html-to-markdown"
resolver = "2"

[[bin]]
name = "html-to-markdown"
path = "src/main.rs"

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

[dependencies.base64]
version = "0.22"

[dependencies.clap]
version = "4.6"
features = ["derive"]

[dependencies.clap_complete]
version = "4.6"

[dependencies.clap_mangen]
version = "0.3"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.html-to-markdown-rs]
version = "3.5.3"
features = [
    "metadata",
    "inline-images",
    "visitor",
    "serde",
]

[dependencies.reqwest]
version = "0.13.3"
features = [
    "blocking",
    "rustls",
    "gzip",
    "brotli",
    "deflate",
    "charset",
]
default-features = false

[dependencies.serde_json]
version = "1.0"

[dev-dependencies.assert_cmd]
version = "2.2"

[dev-dependencies.predicates]
version = "3.1"

[dev-dependencies.tempfile]
version = "3.27"

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

[lints.clippy.arc_with_non_send_sync]
level = "allow"
priority = 1

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

[lints.clippy.cargo_common_metadata]
level = "allow"
priority = 1

[lints.clippy.derivable_impls]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.clippy.needless_borrows_for_generic_args]
level = "allow"
priority = 1

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

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

[lints.clippy.unnecessary_cast]
level = "allow"
priority = 1

[lints.clippy.unnecessary_fallible_conversions]
level = "allow"
priority = 1

[lints.clippy.unnecessary_wraps]
level = "allow"
priority = 1

[lints.clippy.unused_unit]
level = "allow"
priority = 1

[lints.clippy.unwrap_or_default]
level = "allow"
priority = 1

[lints.clippy.useless_conversion]
level = "allow"
priority = 1

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
unused_must_use = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(alef)"]
