Skip to content

Commit 012bed7

Browse files
committed
Add support for iOS
1 parent dba45c0 commit 012bed7

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
triple: aarch64-linux-android
4141
- name: macOS
4242
triple: x86_64-apple-darwin
43+
- name: iOS
44+
triple: aarch64-apple-ios
4345
- name: FreeBSD
4446
triple: x86_64-unknown-freebsd
4547

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)