visdom 1.0.4

A html document syntax and operation library, use APIs similar to jquery, easy to use for web scraping and confused html.
Documentation
use criterion::{criterion_group, criterion_main, Criterion};
use visdom::types::BoxDynError;
use visdom::Vis;

fn bench_selector() -> Result<(), BoxDynError> {
	let html: String = format!(
		r##"
      <ul>
        {}
      </ul>
    "##,
		String::from("<li></li>").repeat(1000)
	);
	let root = Vis::load(&html)?;
	let list = root.children("ul");
	list.find("li:nth-child(2n)");
	Ok(())
}
fn criterion_benchmark(c: &mut Criterion) {
	c.bench_function("bench-selector", |b| b.iter(bench_selector));
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);