Skip to content

web search done right

forked kuchiki due to inactivity

Mikkel Denker595e97585ab7
diff --git a/Cargo.lock b/Cargo.lock
index 61ba0dbb..36c2c5ea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1033,7 +1033,7 @@ dependencies = [
"dtoa-short",
"itoa 0.4.8",
"matches",
- "phf",
+ "phf 0.8.0",
"proc-macro2",
"quote",
"smallvec",
@@ -1872,9 +1872,9 @@ dependencies = [
[[package]]
name = "html5ever"
-version = "0.25.2"
+version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5c13fb08e5d4dfc151ee5e88bae63f7773d61852f3bdc73c9f4b9e1bde03148"
+checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"
dependencies = [
"log",
"mac",
@@ -2186,13 +2186,13 @@ dependencies = [
[[package]]
name = "kuchiki"
version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ea8e9c6e031377cff82ee3001dc8026cdf431ed4e2e6b51f98ab8c73484a358"
dependencies = [
"cssparser",
"html5ever",
+ "indexmap",
"matches",
"selectors",
+ "tempfile",
]
[[package]]
@@ -2430,13 +2430,13 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]]
name = "markup5ever"
-version = "0.10.1"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a24f40fb03852d1cdd84330cddcaf98e9ec08a7b7768e952fad3b4cf048ec8fd"
+checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"
dependencies = [
"log",
- "phf",
- "phf_codegen",
+ "phf 0.10.1",
+ "phf_codegen 0.10.0",
"string_cache",
"string_cache_codegen",
"tendril",
@@ -3024,6 +3024,15 @@ dependencies = [
"proc-macro-hack",
]
+[[package]]
+name = "phf"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"
+dependencies = [
+ "phf_shared 0.10.0",
+]
+
[[package]]
name = "phf_codegen"
version = "0.8.0"
@@ -3034,6 +3043,16 @@ dependencies = [
"phf_shared 0.8.0",
]
+[[package]]
+name = "phf_codegen"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"
+dependencies = [
+ "phf_generator 0.10.0",
+ "phf_shared 0.10.0",
+]
+
[[package]]
name = "phf_generator"
version = "0.8.0"
@@ -3890,8 +3909,8 @@ dependencies = [
"fxhash",
"log",
"matches",
- "phf",
- "phf_codegen",
+ "phf 0.8.0",
+ "phf_codegen 0.8.0",
"precomputed-hash",
"servo_arc",
"smallvec",
diff --git a/Cargo.toml b/Cargo.toml
index 1ad7eb95..dcad068a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,8 @@
[workspace]
members = [
"core",
- "optics"
+ "optics",
+ "kuchiki"
]
[profile.release]
@@ -55,7 +56,6 @@ memmap = "0.7.0"
once_cell = "1.13.1"
regex = "1.6.0"
http = "0.2.8"
-kuchiki = "0.8.1"
tower-http = { version = "0.4.0", features = ["compression-gzip"] }
lalrpop-util = { version = "0.19.8", features = ["lexer"] }
lalrpop = { version = "0.19.8", features = ["lexer"] }
@@ -89,4 +89,4 @@ publicsuffix = "2"
robotstxt-with-cache = "0.4.0"
rust-s3 = "0.33.0"
rusqlite = { version = "0.29.0", features = ["bundled", "modern-full", "buildtime_bindgen"] }
-async-channel = "1.8.0"
\ No newline at end of file
+async-channel = "1.8.0"
diff --git a/core/Cargo.toml b/core/Cargo.toml
index bf3648cd..a233b41d 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -53,7 +53,7 @@ md5 = { workspace = true }
memmap = { workspace = true }
regex = { workspace = true }
http = { workspace = true }
-kuchiki = { workspace = true }
+kuchiki = { path = "../kuchiki" }
serde_urlencoded = { workspace = true }
rust-stemmers = { workspace = true }
min-max-heap = { workspace = true }
diff --git a/kuchiki b/kuchiki
new file mode 160000
index 00000000..f92e4c04
--- /dev/null
+++ b/kuchiki
@@ -0,0 +1 @@
+Subproject commit f92e4c047fdc30619555da282ac7ccce1d313aa6