diff --git a/Cargo.lock b/Cargo.lock index 08a7bbcb4..8c702e1f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6556,7 +6556,6 @@ version = "0.0.1" dependencies = [ "anyhow", "fs-err", - "home", "nix", "same-file", "tempfile", diff --git a/Cargo.toml b/Cargo.toml index f888438bc..0055d91fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,7 +121,6 @@ goblin = { version = "0.10.0", default-features = false, features = ["std", "elf h2 = { version = "0.4.7" } hashbrown = { version = "0.16.0" } hex = { version = "0.4.3" } -home = { version = "0.5.9" } html-escape = { version = "0.2.13" } http = { version = "1.1.0" } indexmap = { version = "2.5.0" } diff --git a/crates/uv-shell/Cargo.toml b/crates/uv-shell/Cargo.toml index 6e7c543a8..7190087a6 100644 --- a/crates/uv-shell/Cargo.toml +++ b/crates/uv-shell/Cargo.toml @@ -22,7 +22,6 @@ uv-static = { workspace = true } anyhow = { workspace = true } fs-err = { workspace = true } -home = { workspace = true } same-file = { workspace = true } tracing = { workspace = true } diff --git a/crates/uv-shell/src/lib.rs b/crates/uv-shell/src/lib.rs index d404aa940..828cc96cc 100644 --- a/crates/uv-shell/src/lib.rs +++ b/crates/uv-shell/src/lib.rs @@ -4,7 +4,9 @@ pub mod windows; pub use shlex::{escape_posix_for_single_quotes, shlex_posix, shlex_windows}; +use std::env::home_dir; use std::path::{Path, PathBuf}; + use uv_fs::Simplified; use uv_static::EnvVars; @@ -145,7 +147,7 @@ impl Shell { /// /// See: pub fn configuration_files(self) -> Vec { - let Some(home_dir) = home::home_dir() else { + let Some(home_dir) = home_dir() else { return vec![]; }; match self { @@ -232,7 +234,7 @@ impl Shell { /// Returns `true` if the given path is on the `PATH` in this shell. pub fn contains_path(path: &Path) -> bool { - let home_dir = home::home_dir(); + let home_dir = home_dir(); std::env::var_os(EnvVars::PATH) .as_ref() .iter()