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

Use wasi-p1 #23

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading