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

Make the wasm-node no-std #1376

Merged
merged 11 commits into from
Nov 21, 2023
Merged

Make the wasm-node no-std #1376

merged 11 commits into from
Nov 21, 2023

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Nov 21, 2023

The wasm-node is now no_std.
This is ensured by the #[panic_handler], which would fail to compile if a dependency wasn't no-std-friendly.

No change in behavior, as we just replaced code by what was done underneath. Note that the executor loses its multithreadedness property. The work-stealing queue of async-executor has been replaced with a simple FIFO queue, which is more appropriate in single-threaded contexts.

@tomaka
Copy link
Contributor Author

tomaka commented Nov 21, 2023

Change in the .wasm size:
Before this PR: 2.794 MiB
After this PR: 2.782 MiB

In other words, it's negligible.

@tomaka tomaka added this pull request to the merge queue Nov 21, 2023
Merged via the queue into smol-dot:main with commit 6ae7888 Nov 21, 2023
23 checks passed
@tomaka tomaka deleted the wasm-node-nostd branch November 21, 2023 11:29
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