-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Sysinfo improvements #9243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sysinfo improvements #9243
Conversation
The miri failure is quite impressive. O.o |
90da20a
to
5c616d4
Compare
The miri failure should be fixed in tomorrow nightly by rust-lang/rust#113946 |
I'm realizing that the [features]
no_dynamic_linking = ["sysinfo"]
default-features = ["no_dynamic_linking"]
[dependencies]
sysinfo = { version = "0.29.6", optional = true } And then in the code we could simply check with |
In other part of the engine As far as I know It's not possible to have a feature expose globally ( |
# iOS | ||
[target.'cfg(all(target_os="ios"))'.dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this also needed for macOS? from sysinfo docs it seems it is https://docs.rs/sysinfo/latest/sysinfo/#use-in-binaries-running-inside-the-macos-or-ios-sandboxstores
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if running it in a VM. Talk about a nightmare...
Closing as I don't think this is going anywhere for the time being. I'll send a PR once the new |
Keeping a hard-set list of supported targets might not be the best, it'd force the code to be updated every time
sysinfo
supports a new target (which doesn't happen often but I guess it's better to consider it?). For example,sysinfo
supportsFreeBSD
but it wasn't listed in the supported targets. So instead, just listing known problematic targets in thecfg
s seems like a better strategy. But maybe it's not what you prefer? In any case, very curious to hear more about it.For the rest, I simply updated
sysinfo
version since it got a lot of fixes (mostly Windows).