https://github.com/xila-project/wasm_application_template
https://github.com/xila-project/wasm_application_template
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xila-project/wasm_application_template
- Owner: Xila-Project
- Created: 2024-02-03T14:32:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T12:26:57.000Z (about 2 years ago)
- Last Synced: 2024-06-05T14:07:02.314Z (about 2 years ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
Rust WASM application template
This is a template for a Rust WASM application. It uses `wasm-wasi32` as the target.
## Prerequisites
Before you begin, ensure you have met the following requirements:
* Latest version of Rust and Cargo.
* `wasm32-wasi` target:
```sh
rustup target add wasm32-wasi
```
* `wasi` extension for `cargo`:
```sh
cargo install cargo-wasi
```
* `wasmtime` runtime:
```sh
curl https://wasmtime.dev/install.sh -sSf | bash
```
## Usage
To build the application, run the following command followed by the desired build options:
```sh
cargo wasi ...
```