lewp_selectors/
lib.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Forked version of the selectors crate. With additions required by [lewp](https://docs.rs/lewp).
6
7// Make |cargo bench| work.
8#![cfg_attr(feature = "bench", feature(test))]
9
10#[macro_use]
11extern crate bitflags;
12#[macro_use]
13extern crate cssparser;
14#[macro_use]
15extern crate derive_more;
16extern crate fxhash;
17#[macro_use]
18extern crate log;
19extern crate phf;
20extern crate precomputed_hash;
21extern crate servo_arc;
22extern crate smallvec;
23
24pub mod attr;
25pub mod bloom;
26mod builder;
27pub mod context;
28pub mod matching;
29mod nth_index_cache;
30pub mod parser;
31pub mod sink;
32mod tree;
33pub mod visitor;
34
35pub use crate::{
36    nth_index_cache::NthIndexCache,
37    parser::{Parser, SelectorImpl, SelectorList},
38    tree::{Element, OpaqueElement},
39};