| 1 | rust-selectors |
| 2 | ============== |
| 3 | |
| 4 | * []( |
| 5 | https://travis-ci.com/servo/rust-selectors) |
| 6 | * [Documentation](https://docs.rs/selectors/) |
| 7 | * [crates.io](https://crates.io/crates/selectors) |
| 8 | |
| 9 | CSS Selectors library for Rust. |
| 10 | Includes parsing and serilization of selectors, |
| 11 | as well as matching against a generic tree of elements. |
| 12 | Pseudo-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). |
| 16 | However you can use this crate without updating it that often, |
| 17 | old versions stay available on crates.io and Cargo will only automatically update |
| 18 | to versions that are numbered as compatible. |
| 19 | |
| 20 | To see how to use this library with your own tree representation, |
| 21 | see [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, |
| 23 | so that code may need to be tweaked.) |
| 24 | If you don’t already have a tree data structure, |
| 25 | consider using [Kuchiki](https://github.com/kuchiki-rs/kuchiki) itself. |