{"id":59035,"library":"selectors","title":"Selectors","description":"CSS Selectors matching for Rust, used in the Servo browser engine.","status":"active","version":"0.38.0","language":"rust","source_language":null,"source_url":"https://github.com/servo/stylo","tags":["css","selectors","parsing","servo","matching"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nselectors = \"0.38.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add selectors","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SelectorList","correct":"use selectors::SelectorList;"}],"quickstart":{"code":"use selectors::SelectorList;\nuse selectors::parser::Parser;\n\nfn main() {\n    let parser = Parser::new();\n    let selector_list = parser.parse(\"div.class#id\").unwrap();\n    println!(\"Parsed selector: {:?}\", selector_list);\n}","lang":"rust","description":"Parses a CSS selector string into a SelectorList for matching."},"warnings":[],"env_vars":null,"search_vec":"'browser':11 'css':2,13 'engin':12 'match':4,17 'pars':15 'rust':6 'selector':1,3,14 'servo':10,16 'use':7","created_at":"2026-06-16T16:47:55.239135+00:00","updated_at":"2026-06-16T16:47:55.239135+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/servo/stylo","github":"https://github.com/servo/stylo","docs":"https://docs.rs/selectors/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}