diff --git a/Cargo.lock b/Cargo.lock index 8513fe3..95bd48f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -529,7 +529,7 @@ dependencies = [ "http 1.3.1", "lychee-lib", "regex", - "reqwest 0.12.14", + "reqwest 0.12.15", "tokio", ] @@ -623,7 +623,7 @@ version = "0.1.0" dependencies = [ "async-trait", "lychee-lib", - "reqwest 0.12.14", + "reqwest 0.12.15", "tokio", ] @@ -751,7 +751,7 @@ dependencies = [ "http 1.3.1", "lychee-lib", "regex", - "reqwest 0.12.14", + "reqwest 0.12.15", "tokio", "tokio-stream", ] @@ -2495,9 +2495,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.26" +version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" dependencies = [ "value-bag", ] @@ -2540,7 +2540,7 @@ dependencies = [ "predicates", "pretty_assertions", "regex", - "reqwest 0.12.14", + "reqwest 0.12.15", "reqwest_cookie_store", "ring", "secrecy", @@ -2590,7 +2590,7 @@ dependencies = [ "pretty_assertions", "pulldown-cmark", "regex", - "reqwest 0.12.14", + "reqwest 0.12.15", "reqwest_cookie_store", "ring", "rstest", @@ -3543,9 +3543,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.12.14" +version = "0.12.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989e327e510263980e231de548a33e63d34962d29ae61b467389a1a09627a254" +checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" dependencies = [ "async-compression", "base64 0.22.1", @@ -3602,7 +3602,7 @@ checksum = "a0b36498c7452f11b1833900f31fbb01fc46be20992a50269c88cf59d79f54e9" dependencies = [ "bytes", "cookie_store", - "reqwest 0.12.14", + "reqwest 0.12.15", "serde", "serde_derive", "url", @@ -4299,9 +4299,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.19.0" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "488960f40a3fd53d72c2a29a58722561dee8afdd175bd88e3db4677d7b2ba600" +checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" dependencies = [ "fastrand", "getrandom 0.3.1", @@ -4709,18 +4709,18 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typed-builder" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd9d30e3a08026c78f246b173243cf07b3696d274debd26680773b6773c2afc7" +checksum = "ce63bcaf7e9806c206f7d7b9c1f38e0dce8bb165a80af0898161058b19248534" dependencies = [ "typed-builder-macro", ] [[package]] name = "typed-builder-macro" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c36781cc0e46a83726d9879608e4cf6c2505237e263a8eb8c24502989cfdb28" +checksum = "60d8d828da2a3d759d3519cdf29a5bac49c77d039ad36d0782edadbf9cd5415b" dependencies = [ "proc-macro2", "quote", diff --git a/examples/builder/Cargo.toml b/examples/builder/Cargo.toml index f358a64..9ac9be5 100644 --- a/examples/builder/Cargo.toml +++ b/examples/builder/Cargo.toml @@ -12,7 +12,7 @@ lychee-lib = { path = "../../lychee-lib", default-features = false } tokio = { version = "1.44.1", features = ["full"] } regex = "1.11.1" http = "1.3.1" -reqwest = { version = "0.12.14", default-features = false, features = ["gzip"] } +reqwest = { version = "0.12.15", default-features = false, features = ["gzip"] } [features] email-check = ["lychee-lib/email-check"] diff --git a/examples/chain/Cargo.toml b/examples/chain/Cargo.toml index f0f3ab6..128248f 100644 --- a/examples/chain/Cargo.toml +++ b/examples/chain/Cargo.toml @@ -10,7 +10,7 @@ path = "chain.rs" [dependencies] async-trait = "0.1.88" lychee-lib = { path = "../../lychee-lib", default-features = false } -reqwest = "0.12.14" +reqwest = "0.12.15" tokio = { version = "1.44.1", features = ["full"] } [features] diff --git a/examples/collect_links/Cargo.toml b/examples/collect_links/Cargo.toml index 2f1ed1d..c111dbb 100644 --- a/examples/collect_links/Cargo.toml +++ b/examples/collect_links/Cargo.toml @@ -13,7 +13,7 @@ tokio = { version = "1.44.1", features = ["full"] } regex = "1.11.1" http = "1.3.1" tokio-stream = "0.1.17" -reqwest = { version = "0.12.14", default-features = false, features = ["gzip"] } +reqwest = { version = "0.12.15", default-features = false, features = ["gzip"] } [features] email-check = ["lychee-lib/email-check"] diff --git a/lychee-bin/Cargo.toml b/lychee-bin/Cargo.toml index 689292d..fbb3177 100644 --- a/lychee-bin/Cargo.toml +++ b/lychee-bin/Cargo.toml @@ -30,12 +30,12 @@ http = "1.3.1" humantime = "2.2.0" humantime-serde = "1.1.1" indicatif = "0.17.11" -log = "0.4.26" +log = "0.4.27" once_cell = "1.21.1" openssl-sys = { version = "0.9.106", optional = true } pad = "0.1.6" regex = "1.11.1" -reqwest = { version = "0.12.14", default-features = false, features = [ +reqwest = { version = "0.12.15", default-features = false, features = [ "gzip", "json", ] } @@ -62,7 +62,7 @@ assert_cmd = "2.0.16" cookie_store = "0.21.1" predicates = "3.1.3" pretty_assertions = "1.4.1" -tempfile = "3.19.0" +tempfile = "3.19.1" tracing-subscriber = { version = "0.3.19", default-features = false, features = [ "fmt", "registry", diff --git a/lychee-bin/src/commands/check.rs b/lychee-bin/src/commands/check.rs index e83f812..641c762 100644 --- a/lychee-bin/src/commands/check.rs +++ b/lychee-bin/src/commands/check.rs @@ -268,7 +268,7 @@ async fn check_url(client: &Client, request: Request) -> Response { let uri = request.uri.clone(); let source = request.source.clone(); client.check(request).await.unwrap_or_else(|e| { - log::error!("Error checking URL {}: Cannot parse URL to URI: {}", uri, e); + log::error!("Error checking URL {uri}: Cannot parse URL to URI: {e}"); Response::new( uri.clone(), Status::Error(ErrorKind::InvalidURI(uri.clone())), diff --git a/lychee-bin/src/main.rs b/lychee-bin/src/main.rs index 36dffb9..0b9dca7 100644 --- a/lychee-bin/src/main.rs +++ b/lychee-bin/src/main.rs @@ -169,7 +169,7 @@ fn load_config() -> Result { // TODO: Remove this warning and the parameter with 1.0 if !&opts.config.exclude_file.is_empty() { - warn!("WARNING: `--exclude-file` is deprecated and will soon be removed; use the `{}` file to ignore URL patterns instead. To exclude paths of files and directories, use `--exclude-path`.", LYCHEE_IGNORE_FILE); + warn!("WARNING: `--exclude-file` is deprecated and will soon be removed; use the `{LYCHEE_IGNORE_FILE}` file to ignore URL patterns instead. To exclude paths of files and directories, use `--exclude-path`."); } // TODO: Remove this warning and the parameter with 1.0 diff --git a/lychee-lib/Cargo.toml b/lychee-lib/Cargo.toml index 17124a0..9682657 100644 --- a/lychee-lib/Cargo.toml +++ b/lychee-lib/Cargo.toml @@ -28,7 +28,7 @@ hyper = "1.6.0" ignore = "0.4.23" ip_network = "0.4.1" linkify = "0.10.0" -log = "0.4.26" +log = "0.4.27" octocrab = "0.43.0" once_cell = "1.21.1" openssl-sys = { version = "0.9.106", optional = true } @@ -38,7 +38,7 @@ pulldown-cmark = "0.13.0" regex = "1.11.1" # Use trust-dns to avoid lookup failures on high concurrency # https://github.com/seanmonstar/reqwest/issues/296 -reqwest = { version = "0.12.14", default-features = false, features = [ +reqwest = { version = "0.12.15", default-features = false, features = [ "gzip", "trust-dns", "cookies", @@ -56,7 +56,7 @@ shellexpand = "3.1.0" thiserror = "2.0.12" tokio = { version = "1.44.1", features = ["full"] } toml = "0.8.20" -typed-builder = "0.20.1" +typed-builder = "0.21.0" url = { version = "2.5.4", features = ["serde"] } [dependencies.par-stream] @@ -65,7 +65,7 @@ features = ["runtime-tokio"] [dev-dependencies] doc-comment = "0.3.3" -tempfile = "3.19.0" +tempfile = "3.19.1" wiremock = "0.6.3" serde_json = "1.0.140" rstest = "0.25.0" diff --git a/lychee-lib/src/utils/request.rs b/lychee-lib/src/utils/request.rs index ca66f7d..8f23033 100644 --- a/lychee-lib/src/utils/request.rs +++ b/lychee-lib/src/utils/request.rs @@ -147,7 +147,7 @@ pub(crate) fn create( match create_request(&raw_uri, source, root_dir, base.as_ref(), extractor) { Ok(request) => Some(request), Err(e) => { - warn!("Error creating request: {:?}", e); + warn!("Error creating request: {e:?}"); None } }