Registry / utility / selectors

selectors

JSON →
library0.38.0rscratesunverified

CSS Selectors matching for Rust, used in the Servo browser engine.

# Cargo.toml [dependencies] selectors = "0.38.0"
INSTALL
IMPORT
SIG · SELECTORS
S
selectors
utilityrustv0.38.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SelectorList
use selectors::SelectorList;

Parses a CSS selector string into a SelectorList for matching.

use selectors::SelectorList; use selectors::parser::Parser; fn main() { let parser = Parser::new(); let selector_list = parser.parse("div.class#id").unwrap(); println!("Parsed selector: {:?}", selector_list); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.38.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
selectors — cargo add selectors · libregistry