Skip to content

Commit

Permalink
Support iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dae authored and valpackett committed Feb 13, 2025
1 parent 0b82158 commit 8781a07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pub struct PlatformMemory {
pub swonly: ByteSize,
}

#[cfg(target_os = "macos")]
#[cfg(target_vendor = "apple")]
#[cfg_attr(
feature = "serde",
derive(Serialize, Deserialize),
Expand Down Expand Up @@ -339,7 +339,7 @@ pub struct Memory {
))]
pub type PlatformSwap = PlatformMemory;

#[cfg(any(target_os = "macos", target_os = "freebsd"))]
#[cfg(any(target_vendor = "apple", target_os = "freebsd"))]
#[cfg_attr(
feature = "serde",
derive(Serialize, Deserialize),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
target_os = "macos"
target_vendor = "apple"
),
macro_use
)]
Expand Down
6 changes: 3 additions & 3 deletions src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod unix;
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
target_os = "macos"
target_vendor = "apple"
))]
pub mod bsd;

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

#[cfg(target_os = "macos")]
#[cfg(target_vendor = "apple")]
pub mod macos;
#[cfg(target_os = "macos")]
#[cfg(target_vendor = "apple")]
pub use self::macos::PlatformImpl;

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

0 comments on commit 8781a07

Please sign in to comment.