From 04e5675717c41c94f669a12bc4f272347b788f71 Mon Sep 17 00:00:00 2001 From: abhiram <16094597+abhiramiyer@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:47:41 +0530 Subject: [PATCH] Fix "cargo doc --open" crash on WSL2 "cargo doc --open" does not work on WSL2 due to a bug in the 'opener' crate. Updated 'opener' to v0.6.1 to fix this issue. --- Cargo.lock | 14 ++++++++++++-- Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5354248fb65..ee6bcaee389 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2164,6 +2164,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +[[package]] +name = "normpath" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec60c60a693226186f5d6edf073232bfb6464ed97eb22cf3b01c1e8198fd97f5" +dependencies = [ + "windows-sys 0.48.0", +] + [[package]] name = "num-traits" version = "0.2.15" @@ -2207,11 +2216,12 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" [[package]] name = "opener" -version = "0.5.2" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "293c15678e37254c15bd2f092314abb4e51d7fdde05c2021279c12631b54f005" +checksum = "6c62dcb6174f9cb326eac248f07e955d5d559c272730b6c03e396b443b562788" dependencies = [ "bstr", + "normpath", "winapi", ] diff --git a/Cargo.toml b/Cargo.toml index 7c51cc5464d..63e06adb53a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ libgit2-sys = "0.15.1" log = "0.4.17" memchr = "2.1.3" miow = "0.5.0" -opener = "0.5" +opener = "0.6.1" openssl ="0.10.55" os_info = "3.5.0" pasetors = { version = "0.6.4", features = ["v3", "paserk", "std", "serde"] }