Skip to content

Commit a87f66c

Browse files
authored
switch back to dirs (#1783)
* switch back to `dirs`
1 parent 104e5bf commit a87f66c

File tree

5 files changed

+101
-48
lines changed

5 files changed

+101
-48
lines changed

Cargo.lock

Lines changed: 94 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ chrono = { version = "0.4", default-features = false, features = [ "clock" ] }
3030
clap = { version = "4.1", features = [ "env", "cargo" ] }
3131
crossbeam-channel = "0.5"
3232
crossterm = { version = "0.26.1", features = [ "serde" ] }
33-
dirs-next = "2.0"
33+
dirs = "5.0"
3434
easy-cast = "0.5"
3535
filetreelist = { path = "./filetreelist", version = "0.5" }
3636
fuzzy-matcher = "0.3"

asyncgit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ openssl-sys = { version = '0.9', features = ["vendored"], optional = true }
2323
rayon-core = "1.11"
2424
scopetime = { path = "../scopetime", version = "0.1" }
2525
serde = { version = "1.0", features = ["derive"] }
26-
shellexpand = "3.1"
26+
shellexpand = "3.1"
2727
thiserror = "1.0"
2828
unicode-truncate = "0.2.0"
2929
url = "2.4"

deny.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ allow = [
66
"BSD-2-Clause",
77
"BSD-3-Clause",
88
"CC0-1.0",
9-
"ISC"
9+
"ISC",
10+
"MPL-2.0"
1011
]
1112
copyleft = "warn"
1213
allow-osi-fsf-free = "neither"

src/args.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn setup_logging() -> Result<()> {
141141
}
142142

143143
fn get_app_cache_path() -> Result<PathBuf> {
144-
let mut path = dirs_next::cache_dir()
144+
let mut path = dirs::cache_dir()
145145
.ok_or_else(|| anyhow!("failed to find os cache dir."))?;
146146

147147
path.push("gitui");
@@ -151,9 +151,9 @@ fn get_app_cache_path() -> Result<PathBuf> {
151151

152152
pub fn get_app_config_path() -> Result<PathBuf> {
153153
let mut path = if cfg!(target_os = "macos") {
154-
dirs_next::home_dir().map(|h| h.join(".config"))
154+
dirs::home_dir().map(|h| h.join(".config"))
155155
} else {
156-
dirs_next::config_dir()
156+
dirs::config_dir()
157157
}
158158
.ok_or_else(|| anyhow!("failed to find os config dir."))?;
159159

0 commit comments

Comments
 (0)