Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support iOS #1

Merged
merged 4 commits into from
Apr 15, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ keywords = ["current", "process", "executable", "dylib", "dll"]
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["errhandlingapi", "libloaderapi", "minwindef", "winerror" ] }

[target.'cfg(any(target_os="linux", target_os="freebsd", target_os="dragonfly", target_os="netbsd", target_os="macos", target_os="illumos", target_os="android"))'.dependencies]
[target.'cfg(any(target_os="linux", target_os="freebsd", target_os="dragonfly", target_os="netbsd", target_os="macos", target_os="illumos", target_os="android", target_os="ios"))'.dependencies]
libc = "0.2.81"
8 changes: 5 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@
//! * Windows
//! * illumos
//! * Android
//! * iOS
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
use std::path::PathBuf;

#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))]
mod linux;
#[cfg(any(target_os = "linux", target_os = "illumos", target_os = "android"))]
use linux as os;

#[cfg(target_os = "macos")]
#[cfg(any(target_os = "macos", target_os = "ios"))]
mod macos;
#[cfg(target_os = "macos")]
#[cfg(any(target_os = "macos", target_os = "ios"))]
use macos as os;

#[cfg(any(target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd"))]
Expand All @@ -46,7 +47,8 @@ use bsd as os;
target_os = "netbsd",
target_os = "macos",
target_os = "illumos",
target_os = "android"
target_os = "android",
target_os = "ios",
))]
mod nix;

Expand Down