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

Compile for wasm32-unknown instead of wasm32-wasi #1129

Merged
merged 4 commits into from
Sep 9, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Sep 8, 2023

Now that no-std compatibility has more or less been achieved (cc #133), we no longer need to compile to wasi and can instead switch to wasm32-unknown-unknown.

#91 was preventing this change, but the issue is now closed.

Switching to wasm32-unknown paves the way for #88 or #519, and has the advantage that it's more stable than wasi. The bindings are also more clean. We no longer pin a specific version of Rust and no longer assume that rustup is in PATH and no longer install things on the user's machine, which are all great things.

The main disadvantage is that println will no longer work, which was sometimes useful for debugging.

@tomaka
Copy link
Contributor Author

tomaka commented Sep 8, 2023

Before this PR, base64(gzip(wasm)) is 2.843 MiB
After this PR, base64(gzip(wasm)) is 2.819 MiB

@tomaka tomaka added this pull request to the merge queue Sep 9, 2023
Merged via the queue into smol-dot:main with commit d353b6c Sep 9, 2023
22 checks passed
@tomaka tomaka deleted the wasm-unknown branch September 9, 2023 10:13
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.

1 participant