Skip to content

Commit 9b307c4

Browse files
committed
Add support for iOS
1 parent 9a2ce3a commit 9b307c4

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
22
- Added support for Android
3+
- Added support for iOS
34

45
# 0.1.4
56

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ targets = ["x86_64-unknown-linux-gnu"]
1414

1515
[dependencies]
1616

17-
[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies]
17+
[target.'cfg(any(target_os = "macos", target = "ios", target_os = "freebsd"))'.dependencies]
1818
libc = "0.2.107"
File renamed without changes.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::num::NonZeroUsize;
44

55
#[cfg_attr(any(target_os = "linux", target_os = "android"), path = "linux.rs")]
66
#[cfg_attr(target_os = "freebsd", path = "freebsd.rs")]
7-
#[cfg_attr(target_os = "macos", path = "macos.rs")]
7+
#[cfg_attr(any(target_os = "macos", target_os = "ios"), path = "apple.rs")]
88
mod imp;
99

1010
/// Obtain the number of threads currently part of the active process. Returns `None` if the number

0 commit comments

Comments
 (0)