Skip to content

Commit

Permalink
Add support for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Mar 15, 2022
1 parent dba45c0 commit 7e318b5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
triple: aarch64-linux-android
- name: macOS
triple: x86_64-apple-darwin
- name: iOS
triple: aarch64-apple-ios
- name: FreeBSD
triple: x86_64-unknown-freebsd

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased
- Added support for Android
- Added support for iOS

# 0.1.4

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]

[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies]
[target.'cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))'.dependencies]
libc = "0.2.107"
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::num::NonZeroUsize;

#[cfg_attr(any(target_os = "linux", target_os = "android"), path = "linux.rs")]
#[cfg_attr(target_os = "freebsd", path = "freebsd.rs")]
#[cfg_attr(target_os = "macos", path = "macos.rs")]
#[cfg_attr(any(target_os = "macos", target_os = "ios"), path = "apple.rs")]
mod imp;

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

0 comments on commit 7e318b5

Please sign in to comment.