Skip to content

Commit 84e7b76

Browse files
Enable more feature on macOS while leaving iOS with a limited set of features
1 parent eb485b1 commit 84e7b76

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

crates/bevy_diagnostic/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ bevy_log = { path = "../bevy_log", version = "0.12.0-dev" }
2121
bevy_time = { path = "../bevy_time", version = "0.12.0-dev" }
2222
bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" }
2323

24-
# MacOS
25-
[target.'cfg(all(target_os="macos"))'.dependencies]
24+
# iOS
25+
[target.'cfg(all(target_os="ios"))'.dependencies]
2626
# Some features of sysinfo are not supported by apple. This will disable those features on apple devices
2727
sysinfo = { version = "0.29.0", default-features = false, features = [
2828
"apple-app-store",
2929
] }
3030

31-
# Only include when not bevy_dynamic_plugin and on linux/windows/android
32-
[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "android"))'.dependencies]
33-
sysinfo = { version = "0.29.0", default-features = false }
31+
[target.'cfg(not(target_os = "ios"))'.dependencies]
32+
sysinfo = { version = "0.29.6", default-features = false }

0 commit comments

Comments
 (0)