From 508c4ed32f3f220690706395937d98e877711a4c Mon Sep 17 00:00:00 2001 From: David Skrundz Date: Wed, 29 Oct 2025 13:19:14 -0600 Subject: [PATCH] Remove home dependency --- Cargo.lock | 9 ++++----- Cargo.toml | 3 +-- README.md | 2 +- crates/cli/Cargo.toml | 1 - crates/cli/src/cli/mod.rs | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2f2c8d2..6816106 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -226,9 +226,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.50" +version = "4.5.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623" +checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5" dependencies = [ "clap_builder", "clap_derive", @@ -236,9 +236,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.50" +version = "4.5.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0" +checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a" dependencies = [ "anstream", "anstyle", @@ -497,7 +497,6 @@ dependencies = [ "clap", "flix", "futures", - "home", "sea-orm", "serde", "tokio", diff --git a/Cargo.toml b/Cargo.toml index d1bbe31..b4e5856 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ resolver = "2" authors = [] edition = "2024" license-file = "LICENSE.md" -rust-version = "1.88.0" +rust-version = "1.85.0" [workspace.lints.rust] arithmetic_overflow = "forbid" @@ -53,7 +53,6 @@ chrono = { version = "^0.4", default-features = false } clap = { version = "^4", default-features = false, features = ["std"] } futures = { version = "^0.3", default-features = false } governor = { version = "^0.10", default-features = false } -home = { version = "^0.5", default-features = false } nonzero_ext = { version = "^0.3", default-features = false } regex = { version = "^1", default-features = false } reqwest = { version = "^0.12", default-features = false } diff --git a/README.md b/README.md index 8c69b5d..0dbad06 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Libraries and tools for dealing with media metadata - build: `cargo hack --feature-powerset build` - clippy: `cargo hack --feature-powerset clippy -- -D warnings` - test: `cargo hack --feature-powerset test` -- test old: `cargo +1.88 hack --feature-powerset test` +- test old: `cargo +1.85 hack --feature-powerset test` - fmt: `cargo fmt --check` - docs: `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features` - install: `cargo install --path crates/cli` diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 982e3a9..69c5626 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -51,7 +51,6 @@ clap = { workspace = true, features = [ "usage", ] } futures = { workspace = true } -home = { workspace = true } sea-orm = { workspace = true, features = ["runtime-tokio"] } serde = { workspace = true, features = ["derive"] } tokio = { workspace = true, features = ["rt", "fs", "macros"] } diff --git a/crates/cli/src/cli/mod.rs b/crates/cli/src/cli/mod.rs index a81b44c..bb3ad5f 100644 --- a/crates/cli/src/cli/mod.rs +++ b/crates/cli/src/cli/mod.rs @@ -24,7 +24,7 @@ impl Cli { pub fn config_path(&self) -> PathBuf { fn expect_home_dir() -> PathBuf { #[allow(clippy::expect_used)] - home::home_dir().expect("you do not have a home directory") + std::env::home_dir().expect("you do not have a home directory") } match self.config.strip_prefix("~/") {