From 301232c9bdb51bb5e85c46e465ce6e8a02eea7ae Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Tue, 3 Dec 2024 21:07:44 +0000 Subject: [PATCH] Trying to fix Rust 1.78 --- Cargo.lock | 13 ++++++++++++- crates/librqbit/Cargo.toml | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index ec8c134..2731b14 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2387,6 +2387,16 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +[[package]] +name = "idna" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "idna" version = "1.0.3" @@ -2774,6 +2784,7 @@ dependencies = [ "governor", "hex 0.4.3", "http", + "idna 0.5.0", "itertools 0.13.0", "librqbit-bencode", "librqbit-buffers", @@ -6478,7 +6489,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", - "idna", + "idna 1.0.3", "percent-encoding", "serde", ] diff --git a/crates/librqbit/Cargo.toml b/crates/librqbit/Cargo.toml index 9114a2b..202b08e 100644 --- a/crates/librqbit/Cargo.toml +++ b/crates/librqbit/Cargo.toml @@ -93,6 +93,8 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [ uuid = { version = "1.2", features = ["v4"] } futures = "0.3" url = { version = "2", default-features = false } +idna = "=0.5.0" # we don't need this crate, but see https://github.com/servo/rust-url/issues/992. It's a dependency of reqwest that we can't turn off, but we need to force pin it to a lower version. + hex = "0.4" backoff = "0.4.0" dashmap = "6"