Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
toolchain: [beta, stable, 1.81.0]
toolchain: [beta, stable, 1.85.0]

name: Test on ${{ matrix.os }} with Rust ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ keywords = ["xdg", "dirs", "directories", "basedir", "path"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/lunacookies/etcetera"
rust-version = "1.70.0"
rust-version = "1.85.0"
description = "An unopinionated library for obtaining configuration, data, cache, & other directories"

[dependencies]
cfg-if = "1"
home = "0.5"

# We should keep this in sync with the `home` crate.
[target.'cfg(windows)'.dependencies]
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ pub mod base_strategy;
pub use app_strategy::{choose_app_strategy, AppStrategy, AppStrategyArgs};
pub use base_strategy::{choose_base_strategy, BaseStrategy};

/// A convenience function that wraps the [`home_dir`](https://docs.rs/home/0.5.4/home/fn.home_dir.html) function from the [home](https://docs.rs/home) crate.
/// A convenience function that wraps the [`home_dir`](https://doc.rust-lang.org/stable/std/env/fn.home_dir.html) function from the standard library.
pub fn home_dir() -> Result<std::path::PathBuf, HomeDirError> {
home::home_dir().ok_or(HomeDirError)
#[allow(deprecated)]
std::env::home_dir().ok_or(HomeDirError)
}

/// This error occurs when the home directory cannot be located.
Expand Down