Add freebsd support for sysinfo (#14553)

I'm not sure if bevy works on FreeBSD or not. But in case it does,
better allow `sysinfo` to be used as well if users want.
This commit is contained in:
Guillaume Gomez 2024-07-31 23:41:40 +02:00 committed by GitHub
parent 6f7c554daa
commit 0e86675177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,8 +32,8 @@ sysinfo = { version = "0.31.0", optional = true, default-features = false, featu
"system",
] }
# Only include when on linux/windows/android
[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "android"))'.dependencies]
# Only include when on linux/windows/android/freebsd
[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "android", target_os = "freebsd"))'.dependencies]
sysinfo = { version = "0.31.0", optional = true, default-features = false, features = [
"system",
] }