[package]
edition = "2024"
name = "crawlkit-parser"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "crawlkit HTML 解析与内容提取模块"
readme = "README.md"
license = "MIT"
repository = "https://github.com/launcher-rs/crawlkit"
[lib]
name = "crawlkit_parser"
path = "src/lib.rs"
[dependencies.crawlkit-core]
version = "0.3.0"
[dependencies.dom_smoothie]
version = "0.18.0"
[dependencies.lazy_static]
version = "1"
[dependencies.regex]
version = "1"
[dependencies.scraper]
version = "0.22"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.skyscraper]
version = "0.6"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[lints.clippy]
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
dbg_macro = "warn"
doc_markdown = "allow"
exit = "warn"
expect_used = "warn"
fn_params_excessive_bools = "allow"
get_unwrap = "warn"
if_not_else = "allow"
items_after_statements = "warn"
manual_let_else = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
redundant_closure_for_method_calls = "warn"
return_self_not_must_use = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
todo = "warn"
too_many_arguments = "allow"
too_many_lines = "allow"
unimplemented = "warn"
unwrap_used = "warn"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"