Update package cpufeatures to 0.2.5 #3153
Closed
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.
The problem
rustup
does not work on machines without AVX2 instructions.The cause
rustup
depends on cratessha-1
andsha2
which themselves depend on the cratecpufeatures
. Thecpufeatures
crate had a bug where it was incorrectly reporting that a machine supports AVX2 instructions when in fact it does not. That bug was fixed in RustCrypto#792 which landed with v0.2.3. Howeverrustup
is still locked to v0.2.2 which is broken.The solution
The issue can be solved by updating the lock file. This PR is the result of the following cargo command:
With the
cpufeatures
package updated to the latest SemVer compatible version the problem goes away.References
Fixes #3083
Fixes rust#100161