[package]
edition = "2024"
rust-version = "1.89"
name = "ruma-html"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Opinionated HTML parsing and manipulating."
homepage = "https://ruma.dev/"
readme = "README.md"
keywords = [
"matrix",
"ruma",
"html",
"parser",
]
license = "MIT"
repository = "https://github.com/ruma/ruma"
[package.metadata.docs.rs]
all-features = true
[features]
matrix = ["dep:ruma-common"]
unstable-msc4286 = []
[lib]
name = "ruma_html"
path = "src/lib.rs"
[[test]]
name = "it"
path = "tests/it/main.rs"
[dependencies.as_variant]
version = "1.2.0"
[dependencies.html5ever]
version = "0.39.0"
[dependencies.ruma-common]
version = "0.18.0"
optional = true
[dependencies.tracing]
version = "0.1.37"
features = [
"std",
"attributes",
]
default-features = false
[dependencies.wildmatch]
version = "2.6.1"
[dev-dependencies.assert_matches2]
version = "0.1.0"
[lints.clippy]
branches_sharing_code = "warn"
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
disallowed_types = "warn"
empty_line_after_outer_attr = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
inefficient_to_string = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
map_flatten = "warn"
missing_enforced_import_renames = "warn"
mod_module_files = "warn"
mut_mut = "warn"
new_without_default = "allow"
nonstandard_macro_braces = "warn"
semicolon_if_nothing_returned = "warn"
str_to_string = "warn"
todo = "warn"
unnecessary_semicolon = "warn"
unreadable_literal = "warn"
unseparated_literal_suffix = "warn"
wildcard_imports = "warn"
[lints.rust]
semicolon_in_expressions_from_macros = "warn"
unreachable_pub = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
'cfg(ruma_identifiers_storage, values("Arc"))',
"cfg(ruma_unstable_exhaustive_types)",
]