fix(rust): Fix 32-bit build failures (i686, armv7l) #1939
Merged
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.
Summary
Fix two build failures on 32-bit architectures reported by Void Linux maintainer.
Fix 1: i686 build failure (#1937)
The code was importing
std::arch::x86_64::*even when compiled for 32-bit x86:Fix: Use separate conditional imports for each architecture.
Fix 2: armv7l build failure (#1938)
The literal
0xcdcdcdcdcdcdcdcdis a 64-bit value that doesn't fit in 32-bitusize:Fix: Define a platform-appropriate constant (64-bit:
0xcdcdcdcdcdcdcdcd, 32-bit:0xcdcdcdcd).Test plan
cargo checkpasses on x86_64Fixes #1937
Fixes #1938
🤖 Generated with Claude Code