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.
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.
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
sysinfosupports a new target (which doesn't happen often but I guess it's better to consider it?). For example,sysinfosupportsFreeBSDbut it wasn't listed in the supported targets. So instead, just listing known problematic targets in thecfgs 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
sysinfoversion since it got a lot of fixes (mostly Windows).