diff --git a/fs_util/Cargo.toml b/fs_util/Cargo.toml index dfbe489c9..d9067875b 100644 --- a/fs_util/Cargo.toml +++ b/fs_util/Cargo.toml @@ -13,7 +13,7 @@ tokio = { workspace = true, features = ["fs", "io-util", "rt", "sync"] } tokio-stream = { workspace = true } walkdir = "2.5.0" -[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "macos"))'.dependencies] +[target.'cfg(any(target_os = "linux", target_os = "android", target_os = "macos", target_os = "ios"))'.dependencies] libc = { workspace = true } [target.'cfg(target_os = "windows")'.dependencies] diff --git a/fs_util/src/safe_move.rs b/fs_util/src/safe_move.rs index 687e7394c..55484ad75 100644 --- a/fs_util/src/safe_move.rs +++ b/fs_util/src/safe_move.rs @@ -143,7 +143,7 @@ fn blocking_rename_no_replace_atomic(src: &Path, dst: &Path) -> io::Result<()> { } } -#[cfg(target_os = "macos")] +#[cfg(any(target_os = "macos", target_os = "ios"))] fn blocking_rename_no_replace_atomic(src: &Path, dst: &Path) -> io::Result<()> { use std::ffi::CString; diff --git a/service/src/logger/mod.rs b/service/src/logger/mod.rs index 59540b991..1a0d09dbd 100644 --- a/service/src/logger/mod.rs +++ b/service/src/logger/mod.rs @@ -5,12 +5,10 @@ mod format; #[path = "android.rs"] mod output; -#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))] +#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos", target_os = "ios"))] #[path = "stdout.rs"] mod output; -// TODO: ios - pub use color::{LogColor, ParseLogColorError}; pub use format::{LogFormat, ParseLogFormatError};