Update tildes-parser version.

This commit is contained in:
Bauke 2023-06-24 10:57:11 +02:00
parent db0f1c5be8
commit 4c38866de8
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 33 additions and 32 deletions

60
Cargo.lock generated
View File

@ -95,6 +95,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"getrandom 0.2.10",
"once_cell", "once_cell",
"version_check", "version_check",
] ]
@ -958,13 +959,13 @@ dependencies = [
[[package]] [[package]]
name = "cssparser" name = "cssparser"
version = "0.27.2" version = "0.29.6"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa"
dependencies = [ dependencies = [
"cssparser-macros", "cssparser-macros",
"dtoa-short", "dtoa-short",
"itoa 0.4.8", "itoa",
"matches", "matches",
"phf 0.8.0", "phf 0.8.0",
"proc-macro2", "proc-macro2",
@ -1099,6 +1100,16 @@ dependencies = [
"dtoa", "dtoa",
] ]
[[package]]
name = "duplicate"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de78e66ac9061e030587b2a2e75cc88f22304913c907b11307bca737141230cb"
dependencies = [
"heck 0.4.1",
"proc-macro-error",
]
[[package]] [[package]]
name = "ego-tree" name = "ego-tree"
version = "0.6.2" version = "0.6.2"
@ -1702,12 +1713,6 @@ dependencies = [
"either", "either",
] ]
[[package]]
name = "itoa"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
[[package]] [[package]]
name = "itoa" name = "itoa"
version = "1.0.6" version = "1.0.6"
@ -2723,15 +2728,16 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]] [[package]]
name = "scraper" name = "scraper"
version = "0.13.0" version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5684396b456f3eb69ceeb34d1b5cb1a2f6acf7ca4452131efa3ba0ee2c2d0a70" checksum = "59e25654b5e9fd557a67dbaab5a5d36b8c448d0561beb4c041b6dbb902eddfa6"
dependencies = [ dependencies = [
"ahash 0.8.3",
"cssparser", "cssparser",
"ego-tree", "ego-tree",
"getopts", "getopts",
"html5ever", "html5ever",
"matches", "once_cell",
"selectors", "selectors",
"smallvec", "smallvec",
"tendril", "tendril",
@ -2928,22 +2934,20 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b"
[[package]] [[package]]
name = "selectors" name = "selectors"
version = "0.22.0" version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"
dependencies = [ dependencies = [
"bitflags", "bitflags",
"cssparser", "cssparser",
"derive_more", "derive_more",
"fxhash", "fxhash",
"log", "log",
"matches",
"phf 0.8.0", "phf 0.8.0",
"phf_codegen 0.8.0", "phf_codegen 0.8.0",
"precomputed-hash", "precomputed-hash",
"servo_arc", "servo_arc",
"smallvec", "smallvec",
"thin-slice",
] ]
[[package]] [[package]]
@ -2993,7 +2997,7 @@ version = "1.0.96"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1"
dependencies = [ dependencies = [
"itoa 1.0.6", "itoa",
"ryu", "ryu",
"serde", "serde",
] ]
@ -3016,16 +3020,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [ dependencies = [
"form_urlencoded", "form_urlencoded",
"itoa 1.0.6", "itoa",
"ryu", "ryu",
"serde", "serde",
] ]
[[package]] [[package]]
name = "servo_arc" name = "servo_arc"
version = "0.1.1" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741"
dependencies = [ dependencies = [
"nodrop", "nodrop",
"stable_deref_trait", "stable_deref_trait",
@ -3210,7 +3214,7 @@ dependencies = [
"hkdf 0.12.3", "hkdf 0.12.3",
"hmac 0.12.1", "hmac 0.12.1",
"indexmap", "indexmap",
"itoa 1.0.6", "itoa",
"libc", "libc",
"log", "log",
"md-5", "md-5",
@ -3470,12 +3474,6 @@ version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d"
[[package]]
name = "thin-slice"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"
[[package]] [[package]]
name = "thiserror" name = "thiserror"
version = "1.0.40" version = "1.0.40"
@ -3509,12 +3507,13 @@ dependencies = [
[[package]] [[package]]
name = "tildes-parser" name = "tildes-parser"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.bauke.xyz/tildes-community/tildes-parser.git?rev=08bf7ed#08bf7ed29e10ba6012afcd57cea263e9f0a707e9" source = "git+https://git.bauke.xyz/tildes-community/tildes-parser.git?rev=6f0d4d394d533a331b0c9cf19fe80d60f0865ca7#6f0d4d394d533a331b0c9cf19fe80d60f0865ca7"
dependencies = [ dependencies = [
"color-eyre", "duplicate",
"lazy_static", "lazy_static",
"regex", "regex",
"scraper", "scraper",
"thiserror",
] ]
[[package]] [[package]]
@ -3529,6 +3528,7 @@ dependencies = [
"dotenvy", "dotenvy",
"grass", "grass",
"plotters", "plotters",
"scraper",
"sea-orm", "sea-orm",
"sea-orm-migration", "sea-orm-migration",
"surf", "surf",
@ -3569,7 +3569,7 @@ version = "0.3.22"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd" checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd"
dependencies = [ dependencies = [
"itoa 1.0.6", "itoa",
"serde", "serde",
"time-core", "time-core",
"time-macros 0.2.9", "time-macros 0.2.9",

View File

@ -18,6 +18,7 @@ chrono = "0.4.22"
color-eyre = "0.6.2" color-eyre = "0.6.2"
dotenvy = "0.15.5" dotenvy = "0.15.5"
grass = "0.11.2" grass = "0.11.2"
scraper = "0.16.0"
sea-orm-migration = "0.11.3" sea-orm-migration = "0.11.3"
tracing = "0.1.36" tracing = "0.1.36"
@ -41,7 +42,7 @@ version = "2.3.2"
[dependencies.tildes-parser] [dependencies.tildes-parser]
git = "https://git.bauke.xyz/tildes-community/tildes-parser.git" git = "https://git.bauke.xyz/tildes-community/tildes-parser.git"
rev = "08bf7ed" rev = "6f0d4d394d533a331b0c9cf19fe80d60f0865ca7"
[dependencies.tracing-subscriber] [dependencies.tracing-subscriber]
features = ["env-filter"] features = ["env-filter"]

View File

@ -9,9 +9,9 @@ use {
eyre::{eyre, WrapErr}, eyre::{eyre, WrapErr},
Result, Result,
}, },
scraper::Html,
sea_orm::{ConnectOptions, Database, DatabaseConnection}, sea_orm::{ConnectOptions, Database, DatabaseConnection},
surf::{Client, Config}, surf::{Client, Config},
tildes_parser::Html,
}; };
/// Creates the SeaQL [`DatabaseConnection`]. /// Creates the SeaQL [`DatabaseConnection`].