Skip to content

Commit

Permalink
Merge pull request #102 from tottoto/update-dependencies
Browse files Browse the repository at this point in the history
Replace dirs-next with dirs and update to winreg 0.50.0
  • Loading branch information
fornwall authored May 1, 2023
2 parents 578dd12 + 2c4acbf commit 1a56e20
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
25 changes: 12 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exclude = [

[dependencies]
clap = "4"
dirs-next = "2"
dirs = "5"
env_logger = "0.10"
log = "0.4"
pulldown-cmark = "0.9"
Expand All @@ -32,7 +32,7 @@ tempfile = "3"
toml = "0.7"

[target.'cfg(windows)'.dependencies]
winreg = "0.11"
winreg = "0.50"

[target.'cfg(unix)'.dependencies]
is-terminal = "0.4.6"
Expand Down
2 changes: 1 addition & 1 deletion src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn current_time() -> u128 {
pub fn cache_dir() -> PathBuf {
#[cfg(not(test))]
{
dirs_next::cache_dir()
dirs::cache_dir()
.map(|dir| dir.join(crate::consts::PROGRAM_NAME))
.expect("Cannot get cache directory")
}
Expand Down

0 comments on commit 1a56e20

Please sign in to comment.