Skip to content

Commit 1295a48

Browse files
add instructions for wasm32
Co-authored-by: Max Petts <[email protected]> Signed-off-by: gilice <[email protected]>
1 parent 44473c8 commit 1295a48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ If you haven't used Rust before, consider familiarizing yourself with the [docum
99
- This template uses [cargo-make](https://github.com/sagiegurari/cargo-make) as a build system. Install it using `cargo install --force cargo-make`.
1010
- Generate your own repository based on this one by following the instructions [here](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template).
1111
- [Clone it](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) locally
12+
- Ensure the wasi target is installed, using: `rustup target add wasm32-wasi`
1213
- Compile your addon by executing `cargo make dev` in the cloned directory. This will create a `bin/lapce-plugin-template.wasm` file.
1314
- Edit the extension's metadata in the `volt.toml` file.
1415
- Check the `activation` block. Here, you can configure when Lapce will load your plugin. The two corresponding settings, `language` and `workspace-contains` accept an array of RegExps.

0 commit comments

Comments
 (0)