Skip to content

Conversation

@cmichi
Copy link
Collaborator

@cmichi cmichi commented Sep 11, 2025

If an ink! contract is currently compiled with cargo +nightly contract build it will fail with this error:

error: error loading target specification: target-pointer-width: invalid type: string "64", expected u16 at line 16 column 30

This is due to this change: rust-lang/rust#144443.

This PR makes sure that whatever toolchain someone uses, the type in the JSON is transformed accordingly.

Once 1.91 is released, we can ask PolkaVM to increase the MSRV, revert the changes in this PR and raise the MSRV here as well.

@cmichi cmichi changed the title Handle Rust >= 1.91 change to target-pointer-width JSON type Handle Rust >= 1.91 change of target-pointer-width JSON type Sep 11, 2025
Copy link
Collaborator

@davidsemakula davidsemakula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cmichi cmichi merged commit 758953d into master Sep 12, 2025
17 checks passed
@cmichi cmichi deleted the cmichi-handle-target-pointer-width-type-change branch September 12, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants