From 76c7058ba09bd0e075d7c6c17d3a82ce6f4d9b9b Mon Sep 17 00:00:00 2001 From: j-mendez Date: Mon, 25 Mar 2024 16:56:49 -0400 Subject: [PATCH] perf(scraper): remove error default nodes --- Cargo.lock | 51 +++++++++++++++++++--------- Cargo.toml | 2 +- accessibility-rs/Cargo.toml | 6 ++-- accessibility-scraper/Cargo.toml | 10 ++---- accessibility-tree/victor/Cargo.toml | 4 +-- 5 files changed, 44 insertions(+), 29 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9d14a9e..38770d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "accessibility-rs" -version = "0.0.55" +version = "0.0.56" dependencies = [ "accessibility-scraper", "accessibility-tree", @@ -29,7 +29,7 @@ dependencies = [ [[package]] name = "accessibility-scraper" -version = "0.0.7" +version = "0.0.8" dependencies = [ "ahash", "cssparser", @@ -646,16 +646,16 @@ checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "html5ever" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7" +checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4" dependencies = [ "log", "mac", "markup5ever", "proc-macro2 1.0.79", "quote 1.0.35", - "syn 1.0.109", + "syn 2.0.55", ] [[package]] @@ -786,13 +786,13 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" [[package]] name = "markup5ever" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016" +checksum = "c7940b09815a02810a42b9e1bc41c069880a87de68e9b1dcbe754a3ba3b47c20" dependencies = [ "log", - "phf 0.10.1", - "phf_codegen 0.10.0", + "phf 0.11.2", + "phf_codegen 0.11.2", "string_cache", "string_cache_codegen", "tendril", @@ -934,11 +934,11 @@ dependencies = [ [[package]] name = "phf" -version = "0.10.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_shared 0.10.0", + "phf_shared 0.11.2", ] [[package]] @@ -953,12 +953,12 @@ dependencies = [ [[package]] name = "phf_codegen" -version = "0.10.0" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" +checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", + "phf_generator 0.11.2", + "phf_shared 0.11.2", ] [[package]] @@ -981,6 +981,16 @@ dependencies = [ "rand 0.8.5", ] +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared 0.11.2", + "rand 0.8.5", +] + [[package]] name = "phf_macros" version = "0.8.0" @@ -1013,6 +1023,15 @@ dependencies = [ "siphasher", ] +[[package]] +name = "phf_shared" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project-lite" version = "0.2.13" diff --git a/Cargo.toml b/Cargo.toml index 9e1cfb6..8474763 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,6 @@ members = [ smallvec = "1" selectors = "0.22.0" cssparser = "0.27.0" -html5ever = "0.26" +html5ever = "0.27" ego-tree = "0.6.2" lazy_static = "1.4" diff --git a/accessibility-rs/Cargo.toml b/accessibility-rs/Cargo.toml index ecf4a74..23153ea 100644 --- a/accessibility-rs/Cargo.toml +++ b/accessibility-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "accessibility-rs" -version = "0.0.55" +version = "0.0.56" authors = ["The A11yWatch Project Developers", "Jeff Mendez "] edition = "2021" license = "MIT OR Apache-2.0" @@ -12,7 +12,7 @@ include = ["/src", "../LICENSE_MIT", "../LICENSE_APACHE", "../README.md", "local [dependencies] lazy_static = { workspace = true } -accessibility-scraper = { version = "0.0.7", features = ["main"], default-features = false, path = "../accessibility-scraper" } +accessibility-scraper = { version = "0.0.8", features = ["main"], default-features = false, path = "../accessibility-scraper" } accessibility-tree = { version = "0.0.7", path = "../accessibility-tree/victor" } getrandom = { version = "0.2", features = ["js"] } taffy = { version = "0.4.0" } @@ -20,7 +20,7 @@ serde = { version = "1.0", features = ["derive"] } selectors = { workspace = true } smallvec = { workspace = true } ego-tree = { workspace = true } -markup5ever = "0.11.0" +markup5ever = "0.12.0" cssparser = { workspace = true } strum = "0.25" strum_macros = "0.25" diff --git a/accessibility-scraper/Cargo.toml b/accessibility-scraper/Cargo.toml index d688eb9..3c4498a 100644 --- a/accessibility-scraper/Cargo.toml +++ b/accessibility-scraper/Cargo.toml @@ -1,26 +1,22 @@ [package] name = "accessibility-scraper" -version = "0.0.7" +version = "0.0.8" edition = "2021" - description = "HTML parsing and querying with CSS selectors with CSS binding styles to elements." keywords = ["html", "css", "selector", "scraping"] - authors = [ "June McEnroe ", "Jeff Mendez ", ] license = "ISC" - repository = "https://github.com/a11ywatch/accessibility-rs" readme = "README.md" - [dependencies] cssparser = { workspace = true } ego-tree = { workspace = true } html5ever = { workspace = true } selectors = { workspace = true } -smallvec = "1" +smallvec = { workspace = true } tendril = "0.4.3" ahash = "0.8" indexmap = { version = "2.0.0", optional = true } @@ -31,7 +27,7 @@ version = "0.2.21" optional = true [features] -default = ["main", "errors"] +default = ["main"] deterministic = ["indexmap"] main = ["getopts"] atomic = [] diff --git a/accessibility-tree/victor/Cargo.toml b/accessibility-tree/victor/Cargo.toml index 17a1252..5f76879 100644 --- a/accessibility-tree/victor/Cargo.toml +++ b/accessibility-tree/victor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "accessibility-tree" -version = "0.0.7" +version = "0.0.8" authors = ["Jeff Mendez