Redox OS is part of the unix family (#15307)

This commit is contained in:
Weihang Lo 2025-03-14 05:02:38 +00:00 committed by GitHub
commit ca694a8b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 9 deletions

10
Cargo.lock generated
View File

@ -330,7 +330,7 @@ dependencies = [
"glob",
"hex",
"hmac",
"home 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
"home 0.5.11",
"http-auth",
"ignore",
"im-rc",
@ -1739,7 +1739,7 @@ checksum = "c40f12bb65a8299be0cfb90fe718e3be236b7a94b434877012980863a883a99f"
dependencies = [
"bstr",
"gix-trace",
"home 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
"home 0.5.11",
"once_cell",
"thiserror 2.0.11",
]
@ -2143,15 +2143,15 @@ dependencies = [
[[package]]
name = "home"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
dependencies = [
"windows-sys 0.59.0",
]
[[package]]
name = "home"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf"
version = "0.5.12"
dependencies = [
"windows-sys 0.59.0",
]

View File

@ -611,8 +611,6 @@ fn _link_or_copy(src: &Path, dst: &Path) -> Result<()> {
}
let link_result = if src.is_dir() {
#[cfg(target_os = "redox")]
use std::os::redox::fs::symlink;
#[cfg(unix)]
use std::os::unix::fs::symlink;
#[cfg(windows)]

View File

@ -1,6 +1,6 @@
[package]
name = "home"
version = "0.5.11"
version = "0.5.12"
authors = ["Brian Anderson <andersrb@gmail.com>"]
rust-version.workspace = true
documentation = "https://docs.rs/home"

View File

@ -69,7 +69,7 @@ pub fn home_dir() -> Option<PathBuf> {
#[cfg(windows)]
use windows::home_dir_inner;
#[cfg(any(unix, target_os = "redox"))]
#[cfg(unix)]
fn home_dir_inner() -> Option<PathBuf> {
#[allow(deprecated)]
std::env::home_dir()