Replace dirs and directories with maintained (#2949)

This commit is contained in:
Caden Haustein
2021-01-19 20:24:27 +00:00
committed by GitHub
parent 2e6d836dd1
commit 430da53f0b
11 changed files with 389 additions and 302 deletions

View File

@ -41,8 +41,8 @@ codespan-reporting = "0.11.0"
csv = "1.1.3"
ctrlc = { version = "3.1.6", optional = true }
derive-new = "0.5.8"
directories = { version = "3.0.1", optional = true }
dirs = { version = "3.0.1", optional = true }
directories-next = { version = "2.0.0", optional = true }
dirs-next = { version = "2.0.0", optional = true }
dtparse = "1.2.0"
dunce = "1.0.1"
eml-parser = "0.1.0"
@ -131,3 +131,5 @@ rich-benchmark = ["heim"]
rustyline-support = ["rustyline"]
stable = []
trash-support = ["trash"]
directories = ["directories-next"]
dirs = ["dirs-next"]

View File

@ -96,7 +96,7 @@ async fn run_with_stdin(
#[cfg(feature = "dirs")]
{
home_dir = dirs::home_dir;
home_dir = dirs_next::home_dir;
}
#[cfg(not(feature = "dirs"))]
{

View File

@ -139,7 +139,7 @@ fn filesystem_change_to_home_directory() {
"#
);
assert_eq!(Some(PathBuf::from(actual.out)), dirs::home_dir());
assert_eq!(Some(PathBuf::from(actual.out)), dirs_next::home_dir());
})
}