Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Add WASM/WASI support #91

Merged
merged 6 commits into from
Jan 19, 2020
Merged

Add WASM/WASI support #91

merged 6 commits into from
Jan 19, 2020

Conversation

repi
Copy link
Contributor

@repi repi commented Jan 18, 2020

This adds support for building the lib for both wasm32-unknown-unknown and wasm32-wasi with single-threaded execution, and for running the CLI with wasm32-wasi.

Example:

rustup target add wasm32-wasi

cargo build --release --target wasm32-wasi

wasmer run ./target/wasm32-wasi/release/texture-synthesis.wasm --mapdir=out:out --mapdir=imgs:imgs -- --out out/01.jpg generate imgs/1.jpg

It is not too practical yet without multithreading support (which WASM doesn't support yet), but is very portable and is a good benchmark to test WASM performance with.

@repi repi requested a review from Jake-Shadle January 18, 2020 23:55
@mergify mergify bot merged commit 39f007f into master Jan 19, 2020
@mergify mergify bot deleted the wasm branch January 19, 2020 13:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants