[package]
edition = "2024"
name = "h2m"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTML to Markdown converter."
readme = "README.md"
keywords = [
"html",
"markdown",
"converter",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/qntx-labs/h2m"
[features]
default = []
fetch = [
"dep:reqwest",
"dep:serde",
"dep:serde_json",
"dep:tokio",
]
[lib]
name = "h2m"
path = "src/lib.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.ego-tree]
version = "0.11"
[dependencies.reqwest]
version = "0.13"
features = ["rustls"]
optional = true
default-features = false
[dependencies.scraper]
version = "0.26"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
optional = true
[dependencies.url]
version = "2"
[dev-dependencies.pretty_assertions]
version = "1"
[lints.clippy]
cargo_common_metadata = "warn"
clone_on_ref_ptr = "warn"
dbg_macro = "warn"
doc_markdown = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
expect_used = "warn"
fn_params_excessive_bools = "warn"
future_not_send = "warn"
implicit_hasher = "warn"
missing_docs_in_private_items = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "warn"
multiple_crate_versions = "allow"
must_use_candidate = "warn"
option_if_let_else = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
shadow_reuse = "warn"
shadow_same = "warn"
shadow_unrelated = "warn"
significant_drop_tightening = "warn"
similar_names = "warn"
struct_excessive_bools = "warn"
todo = "warn"
too_many_lines = "warn"
unimplemented = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1