Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 17-Mar-2022 | - | ||||
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
Cargo.toml | H A D | 17-Mar-2022 | 1.3 KiB | 59 | 47 | |
README.md | H A D | 17-Mar-2022 | 1.1 KiB | 26 | 21 | |
attr.rs | H A D | 17-Mar-2022 | 6.7 KiB | 204 | 173 | |
bloom.rs | H A D | 17-Mar-2022 | 11.5 KiB | 423 | 284 | |
build.rs | H A D | 17-Mar-2022 | 1.4 KiB | 78 | 68 | |
builder.rs | H A D | 17-Mar-2022 | 12.9 KiB | 358 | 254 | |
context.rs | H A D | 17-Mar-2022 | 9.1 KiB | 292 | 185 | |
lib.rs | H A D | 17-Mar-2022 | 855 | 36 | 27 | |
matching.rs | H A D | 17-Mar-2022 | 34.8 KiB | 1,011 | 764 | |
nth_index_cache.rs | H A D | 17-Mar-2022 | 1.6 KiB | 53 | 32 | |
parser.rs | H A D | 17-Mar-2022 | 116.9 KiB | 3,311 | 2,645 | |
sink.rs | H A D | 17-Mar-2022 | 950 | 32 | 15 | |
tree.rs | H A D | 17-Mar-2022 | 4.8 KiB | 148 | 79 | |
visitor.rs | H A D | 17-Mar-2022 | 1.9 KiB | 58 | 28 |
README.md
1rust-selectors 2============== 3 4* [![Build Status](https://travis-ci.com/servo/rust-selectors.svg?branch=master)]( 5 https://travis-ci.com/servo/rust-selectors) 6* [Documentation](https://docs.rs/selectors/) 7* [crates.io](https://crates.io/crates/selectors) 8 9CSS Selectors library for Rust. 10Includes parsing and serialization of selectors, 11as well as matching against a generic tree of elements. 12Pseudo-elements and most pseudo-classes are generic as well. 13 14**Warning:** breaking changes are made to this library fairly frequently 15(13 times in 2016, for example). 16However you can use this crate without updating it that often, 17old versions stay available on crates.io and Cargo will only automatically update 18to versions that are numbered as compatible. 19 20To see how to use this library with your own tree representation, 21see [Kuchiki’s `src/select.rs`](https://github.com/kuchiki-rs/kuchiki/blob/master/src/select.rs). 22(Note however that Kuchiki is not always up to date with the latest rust-selectors version, 23so that code may need to be tweaked.) 24If you don’t already have a tree data structure, 25consider using [Kuchiki](https://github.com/kuchiki-rs/kuchiki) itself. 26