Remove home dependency

This commit is contained in:
2025-10-29 13:19:14 -06:00
parent dd688fdc83
commit 508c4ed32f
5 changed files with 7 additions and 10 deletions
Generated
+4 -5
View File
@@ -226,9 +226,9 @@ dependencies = [
[[package]] [[package]]
name = "clap" name = "clap"
version = "4.5.50" version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623" checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5"
dependencies = [ dependencies = [
"clap_builder", "clap_builder",
"clap_derive", "clap_derive",
@@ -236,9 +236,9 @@ dependencies = [
[[package]] [[package]]
name = "clap_builder" name = "clap_builder"
version = "4.5.50" version = "4.5.51"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0" checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a"
dependencies = [ dependencies = [
"anstream", "anstream",
"anstyle", "anstyle",
@@ -497,7 +497,6 @@ dependencies = [
"clap", "clap",
"flix", "flix",
"futures", "futures",
"home",
"sea-orm", "sea-orm",
"serde", "serde",
"tokio", "tokio",
+1 -2
View File
@@ -6,7 +6,7 @@ resolver = "2"
authors = [] authors = []
edition = "2024" edition = "2024"
license-file = "LICENSE.md" license-file = "LICENSE.md"
rust-version = "1.88.0" rust-version = "1.85.0"
[workspace.lints.rust] [workspace.lints.rust]
arithmetic_overflow = "forbid" arithmetic_overflow = "forbid"
@@ -53,7 +53,6 @@ chrono = { version = "^0.4", default-features = false }
clap = { version = "^4", default-features = false, features = ["std"] } clap = { version = "^4", default-features = false, features = ["std"] }
futures = { version = "^0.3", default-features = false } futures = { version = "^0.3", default-features = false }
governor = { version = "^0.10", 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 } nonzero_ext = { version = "^0.3", default-features = false }
regex = { version = "^1", default-features = false } regex = { version = "^1", default-features = false }
reqwest = { version = "^0.12", default-features = false } reqwest = { version = "^0.12", default-features = false }
+1 -1
View File
@@ -7,7 +7,7 @@ Libraries and tools for dealing with media metadata
- build: `cargo hack --feature-powerset build` - build: `cargo hack --feature-powerset build`
- clippy: `cargo hack --feature-powerset clippy -- -D warnings` - clippy: `cargo hack --feature-powerset clippy -- -D warnings`
- test: `cargo hack --feature-powerset test` - 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` - fmt: `cargo fmt --check`
- docs: `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features` - docs: `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features`
- install: `cargo install --path crates/cli` - install: `cargo install --path crates/cli`
-1
View File
@@ -51,7 +51,6 @@ clap = { workspace = true, features = [
"usage", "usage",
] } ] }
futures = { workspace = true } futures = { workspace = true }
home = { workspace = true }
sea-orm = { workspace = true, features = ["runtime-tokio"] } sea-orm = { workspace = true, features = ["runtime-tokio"] }
serde = { workspace = true, features = ["derive"] } serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["rt", "fs", "macros"] } tokio = { workspace = true, features = ["rt", "fs", "macros"] }
+1 -1
View File
@@ -24,7 +24,7 @@ impl Cli {
pub fn config_path(&self) -> PathBuf { pub fn config_path(&self) -> PathBuf {
fn expect_home_dir() -> PathBuf { fn expect_home_dir() -> PathBuf {
#[allow(clippy::expect_used)] #[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("~/") { match self.config.strip_prefix("~/") {