Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support No reference Types in RUSTFLAGS by going from wasm->wat->wasm #126

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

rauljordan
Copy link
Contributor

Description

This PR honors wasms that are built with export RUSTFLAGS=-Ctarget-feature=-reference-types by removing reference type mentions through a conversion from wasm->wat->wasm. This is accompanied by also locking down the Rust toolchain of cargo stylus to 1.83 and a PR to update stylus-hello-world to 1.83 with the specific Rust flag to disable reference types. This means that at the moment, with this change, there is no maximum Rust version limiting Stylus contracts or the SDK.

Huge thanks to @PlasmaPower for the suggestion.

@rauljordan
Copy link
Contributor Author

Ready again @rory-ocl and @joshuacolvin0

main/src/project.rs Outdated Show resolved Hide resolved
main/src/check.rs Show resolved Hide resolved
main/src/project.rs Show resolved Hide resolved
@rauljordan rauljordan requested a review from gligneul December 11, 2024 15:00
Copy link
Contributor

@gligneul gligneul left a comment

Choose a reason for hiding this comment

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

LGTM

@rauljordan rauljordan merged commit 1ce422a into main Dec 11, 2024
7 checks passed
@rauljordan rauljordan deleted the support-removing-reference-types branch December 11, 2024 16:08
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.

2 participants