Skip to content

Commit ce856db

Browse files
musicinmybrainEnselic
authored andcommitted
Update etcetera to 0.11; no longer depend on home; MSRV 1.87
Release 0.11 of `etcetera` requires MSRV 1.87, in which `std::env::home_dir` is no longer deprecated, rust-lang/rust#137327. Update to that MSRV and to `etcetera`, and drop the dependency on the `home` crate just as `etcetera` 0.11 did.
1 parent 3ecbd18 commit ce856db

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude = ["assets/syntaxes/*", "assets/themes/*"]
1111
build = "build/main.rs"
1212
edition = '2021'
1313
# You are free to bump MSRV as soon as a reason for bumping emerges.
14-
rust-version = "1.79"
14+
rust-version = "1.87"
1515

1616
[features]
1717
default = ["application", "git"]
@@ -65,7 +65,7 @@ semver = "1.0"
6565
path_abs = { version = "0.5", default-features = false }
6666
clircle = { version = "0.6.1", default-features = false }
6767
bugreport = { version = "0.5.0", optional = true }
68-
etcetera = { version = "0.10.0", optional = true }
68+
etcetera = { version = "0.11.0", optional = true }
6969
grep-cli = { version = "0.1.11", optional = true }
7070
regex = { version = "1.12.2", optional = true }
7171
walkdir = { version = "2.5", optional = true }
@@ -92,7 +92,6 @@ optional = true
9292
features = ["wrap_help", "cargo"]
9393

9494
[target.'cfg(target_os = "macos")'.dependencies]
95-
home = "0.5.9"
9695
plist = "1.7.0"
9796

9897
[dev-dependencies]

src/theme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ fn color_scheme_from_system() -> Option<ColorScheme> {
288288
const PREFERENCES_FILE: &str = "Library/Preferences/.GlobalPreferences.plist";
289289
const STYLE_KEY: &str = "AppleInterfaceStyle";
290290

291-
let preferences_file = home::home_dir()
291+
let preferences_file = std::env::home_dir()
292292
.map(|home| home.join(PREFERENCES_FILE))
293293
.expect("Could not get home directory");
294294

0 commit comments

Comments
 (0)