Auto merge of #12373 - abhiramiyer:master, r=epage

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.

### What does this PR try to resolve?

Fixes #12372

### How should we test and review this PR?
1. In a WSL2 setup, download or create a cargo project and run 'cargo doc --open'.
2. The doc will open in the default browser.
This commit is contained in:
bors 2023-07-18 14:44:47 +00:00
commit 1b15556767
2 changed files with 13 additions and 3 deletions

14
Cargo.lock generated
View file

@ -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",
]

View file

@ -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"] }