[package]
edition = "2024"
rust-version = "1.88"
name = "css-to-xpath"
version = "0.3.0"
build = false
include = [
"/src/**/*.rs",
"/Cargo.toml",
"/LICENSE",
"/README.md",
"/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Translate CSS selectors to XPath 1.0 expressions"
documentation = "https://docs.rs/css-to-xpath"
readme = "README.md"
keywords = [
"css",
"xpath",
"selectors",
"html",
"xml",
]
categories = [
"parser-implementations",
"web-programming",
"text-processing",
]
license = "MIT"
repository = "https://github.com/sjp/css-to-xpath"
[lib]
name = "css_to_xpath"
path = "src/lib.rs"
[dependencies.cssparser]
version = "0.37"
[dependencies.precomputed-hash]
version = "0.1"
[dependencies.selectors]
version = "0.40"
[dependencies.unicode-width]
version = "0.2"
[dev-dependencies.proptest]
version = "1.11.0"
[dev-dependencies.sxd-document]
version = "0.3.2"
[dev-dependencies.sxd-xpath]
version = "0.4.2"
[lints.clippy]
needless_pass_by_value = "warn"
trivially_copy_pass_by_ref = "warn"
uninhabited_references = "warn"
unused_self = "warn"
[lints.rust]
unreachable_pub = "warn"