Skip to content

Add spacewasi crate#26

Merged
Kronos3 merged 32 commits into
mainfrom
cole/wasi-crate
Jul 17, 2026
Merged

Add spacewasi crate#26
Kronos3 merged 32 commits into
mainfrom
cole/wasi-crate

Conversation

@cole-wilson

@cole-wilson cole-wilson commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Add an implementation of the wasi_snapshot_preview1 WASI bindings and a command line binary to run arbitrary WASI mvp modules.

This crate uses wasmtime's internal binding functions for the actual WASI implementations, from the wasi-common crate.

Future extension is possible for preview2 through the same interface.

There is also a simple make_mvp bash script which "lowers" WASM binaries to MVP levels that can be run in spacewasm.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Code Coverage Report

Current Coverage: 94.59%
Baseline Coverage (main): 94.64%
Difference: -0.04%

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

CoreMark Benchmark Results

Current Score: 256.690
Baseline Score (main): 256.739
Difference: -0.049 (-0.02%)

@cole-wilson
cole-wilson marked this pull request as ready for review July 9, 2026 23:29
@cole-wilson
cole-wilson requested a review from Kronos3 July 9, 2026 23:30
@cole-wilson

cole-wilson commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Checks are currently failing due to the use of llvm and wasi-sdk for compiling the wasi test cases, and it is not installed on the runner yet.

@Kronos3 Kronos3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks generally good, I had a couple notes on error handling and other minor things.

Comment thread .github/workflows/ci.yml Outdated
Comment thread crates/spacewasi/src/main.rs Outdated
Comment thread crates/spacewasi/src/main.rs Outdated
@Kronos3

Kronos3 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@cole-wilson You may also want to sync up with the latest main since there are some CI related changes since this branch was made.

@cole-wilson
cole-wilson requested a review from Kronos3 July 14, 2026 09:19

@Kronos3 Kronos3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work!

@Kronos3
Kronos3 merged commit 929988d into main Jul 17, 2026
18 checks passed
@Kronos3
Kronos3 deleted the cole/wasi-crate branch July 17, 2026 16: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.

2 participants