gecko-dev/servo/components/selectors
2019-09-09 22:39:46 +00:00
..
attr.rs Bug 1474793 - Part 10.8: Add derived ToShmem implementations. r=emilio 2019-03-30 00:16:25 +00:00
bloom.rs Bug 1577439 - Shutdown Servo's thread-pool in leak-checking builds, leak the atom table elsewhere. r=bholley 2019-09-09 22:39:46 +00:00
build.rs
builder.rs Bug 1560777 - Rustfmt and fix tidy on recent changes. 2019-06-23 13:16:03 +02:00
Cargo.toml Bug 1560777 - Update various servo / test-only dependencies. 2019-06-23 13:15:55 +02:00
context.rs Bug 1556602 - Fix various warnings with rust 1.37 nightly. r=froydnj 2019-06-18 21:32:16 +00:00
lib.rs Bug 1474793 - Part 10.8: Add derived ToShmem implementations. r=emilio 2019-03-30 00:16:25 +00:00
matching.rs Bug 1556388 - Do not use borrowed types in the selectors::Element trait. r=emilio 2019-06-03 09:12:17 -04:00
nth_index_cache.rs
parser.rs Bug 1560777 - Rustfmt and fix tidy on recent changes. 2019-06-23 13:16:03 +02:00
README.md Bug 1564085 - Update Travis CI URLs. r=emilio 2019-07-08 13:10:01 +02:00
sink.rs
tree.rs Bug 1556388 - Do not use borrowed types in the selectors::Element trait. r=emilio 2019-06-03 09:12:17 -04:00
visitor.rs

rust-selectors

CSS Selectors library for Rust. Includes parsing and serilization of selectors, as well as matching against a generic tree of elements. Pseudo-elements and most pseudo-classes are generic as well.

Warning: breaking changes are made to this library fairly frequently (13 times in 2016, for example). However you can use this crate without updating it that often, old versions stay available on crates.io and Cargo will only automatically update to versions that are numbered as compatible.

To see how to use this library with your own tree representation, see Kuchikis src/select.rs. (Note however that Kuchiki is not always up to date with the latest rust-selectors version, so that code may need to be tweaked.) If you dont already have a tree data structure, consider using Kuchiki itself.