File: use-xdg-home.diff

package info (click to toggle)
rust-which 8.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: makefile: 2
file content (33 lines) | stat: -rw-r--r-- 860 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,7 @@
 [features]
 default = ["real-sys"]
 real-sys = [
-    "dep:env_home",
+    "dep:xdg-home",
     "dep:rustix",
 ]
 regex = ["dep:regex"]
@@ -78,7 +78,7 @@
 optional = true
 default-features = false
 
-[target.'cfg(any(windows, unix, target_os = "redox"))'.dependencies.env_home]
-version = "0.1.0"
+[target.'cfg(any(windows, unix, target_os = "redox"))'.dependencies.xdg-home]
+version = "1.0"
 optional = true

--- a/src/sys.rs
+++ b/src/sys.rs
@@ -146,7 +146,7 @@
         // Home dir shim, use env_home crate when possible. Otherwise, return None
         #[cfg(any(windows, unix, target_os = "redox"))]
         {
-            env_home::env_home_dir()
+            xdg_home::home_dir()
         }
         #[cfg(not(any(windows, unix, target_os = "redox")))]
         {