Skip to content

Commit 8781a07

Browse files
daevalpackett
authored andcommitted
Support iOS
1 parent 0b82158 commit 8781a07

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub struct PlatformMemory {
283283
pub swonly: ByteSize,
284284
}
285285

286-
#[cfg(target_os = "macos")]
286+
#[cfg(target_vendor = "apple")]
287287
#[cfg_attr(
288288
feature = "serde",
289289
derive(Serialize, Deserialize),
@@ -339,7 +339,7 @@ pub struct Memory {
339339
))]
340340
pub type PlatformSwap = PlatformMemory;
341341

342-
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
342+
#[cfg(any(target_vendor = "apple", target_os = "freebsd"))]
343343
#[cfg_attr(
344344
feature = "serde",
345345
derive(Serialize, Deserialize),

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
target_os = "freebsd",
77
target_os = "openbsd",
88
target_os = "netbsd",
9-
target_os = "macos"
9+
target_vendor = "apple"
1010
),
1111
macro_use
1212
)]

src/platform/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub mod unix;
1414
target_os = "freebsd",
1515
target_os = "openbsd",
1616
target_os = "netbsd",
17-
target_os = "macos"
17+
target_vendor = "apple"
1818
))]
1919
pub mod bsd;
2020

@@ -33,9 +33,9 @@ pub mod netbsd;
3333
#[cfg(target_os = "netbsd")]
3434
pub use self::netbsd::PlatformImpl;
3535

36-
#[cfg(target_os = "macos")]
36+
#[cfg(target_vendor = "apple")]
3737
pub mod macos;
38-
#[cfg(target_os = "macos")]
38+
#[cfg(target_vendor = "apple")]
3939
pub use self::macos::PlatformImpl;
4040

4141
#[cfg(any(target_os = "linux", target_os = "android"))]

0 commit comments

Comments
 (0)