From 336ec72b91a293fe872f8da288f8b0c5dc90c25b Mon Sep 17 00:00:00 2001 From: Kasper Date: Wed, 27 Nov 2024 16:53:12 +0100 Subject: [PATCH] Temporary fix for idna not compiling --- Cargo.lock | 24 +++++++++++++----------- Cargo.toml | 1 + 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba71947..0c0f253 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1079,23 +1079,24 @@ dependencies = [ [[package]] name = "idna" -version = "1.0.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ - "idna_adapter", - "smallvec", - "utf8_iter", + "unicode-bidi", + "unicode-normalization", ] [[package]] -name = "idna_adapter" -version = "1.2.0" +name = "idna" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +checksum = "bd69211b9b519e98303c015e21a007e293db403b6c85b9b124e133d25e242cdd" dependencies = [ "icu_normalizer", "icu_properties", + "smallvec", + "utf8_iter", ] [[package]] @@ -1184,6 +1185,7 @@ dependencies = [ "chrono", "dotenvy", "futures-util", + "idna 1.0.2", "jsonwebtoken", "rand", "regex", @@ -2842,12 +2844,12 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.4" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" dependencies = [ "form_urlencoded", - "idna", + "idna 0.5.0", "percent-encoding", ] diff --git a/Cargo.toml b/Cargo.toml index 1fc2ddc..96dd00b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,7 @@ chrono = { version = "0.4", features = ["serde"] } argon2 = { version = "0.5", features = ["std"] } dotenvy = "0.15" regex = "1.11" +idna = "=1.0.2" # Temporary fix for https://github.com/servo/rust-url/issues/992 [[bin]]