Use target_abi = "sim"
instead of ios_simulator
feature
#17702
Merged
+7
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Get rid of a redundant Cargo feature flag.
Solution
Use the built-in
target_abi = "sim"
instead of a custom Cargo feature flag, which is set for the iOS (and visionOS and tvOS) simulator. This has been stable since Rust 1.78.In the future, some of this may become redundant if Wgpu implements proper supper for the iOS Simulator:
gfx-rs/wgpu#7057
CC @mockersf who implemented the original fix.
Testing
target_abi = "sim"
.(I haven't actually performed these steps on the latest
main
, because I'm hitting an unrelated error (EDIT: It was #17637). But tested it on 0.15.0).Migration Guide