Skip to content

Commit

Permalink
wasmp1 support (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb authored Oct 5, 2024
1 parent 919bbd4 commit 3f00203
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stateroom-cli/src/build_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct BuildResult {

pub fn do_build(config: &StateroomConfig) -> Result<BuildResult> {
tracing::info!("Building service");
let server_wasm = run_cargo_build_command(&config.service.package, "wasm32-wasi", true)?;
let server_wasm = run_cargo_build_command(&config.service.package, "wasm32-wasip1", true)?;

let client_wasm = if let Some(client_config) = &config.client {
tracing::info!("Building client");
Expand Down
8 changes: 4 additions & 4 deletions stateroom-wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ imported from the host environment (like `send_message`).
## Compiling

If you are using the Stateroom command-line interface, `stateroom dev` will build the
current crate using the `wasm32-wasi` target, and then load and serve the generated
current crate using the `wasm32-wasip1` target, and then load and serve the generated
WebAssembly module.

If you would like to build it manually, make sure you have the `wasm32-wasi` target installed
If you would like to build it manually, make sure you have the `wasm32-wasip1` target installed
and pass it as a target to `cargo build`:

```bash
$ rustup target add wasm32-wasi
$ cargo build --release --target=wasm32-wasi
$ rustup target add wasm32-wasip1
$ cargo build --release --target=wasm32-wasip1
```

## Embedding
Expand Down

0 comments on commit 3f00203

Please sign in to comment.