Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lafkpages/wasm-bindgen-error-repro
rustwasm/wasm-bindgen#3560
https://github.com/lafkpages/wasm-bindgen-error-repro
error example repro
Last synced: about 1 month ago
JSON representation
rustwasm/wasm-bindgen#3560
- Host: GitHub
- URL: https://github.com/lafkpages/wasm-bindgen-error-repro
- Owner: lafkpages
- Created: 2023-08-17T09:37:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-08T10:55:49.000Z (about 1 year ago)
- Last Synced: 2023-10-08T11:33:45.579Z (about 1 year ago)
- Topics: error, example, repro
- Language: JavaScript
- Homepage: https://github.com/rustwasm/wasm-bindgen/issues/3560
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SvelteKit + Rust + WebAssembly template
This is a template for using Rust and WebAssembly in a SvelteKit project.
## Usage
You'll need Node.js, PNPM, Rust, and all of the other tools listed in the
[Rust Wasm book](https://rustwasm.github.io/docs/book/game-of-life/setup.html).Then, setup the project and install dependencies:
```sh
pnpm run setup
```Then, run the dev server:
```sh
pnpm dev
```Once you've run the dev server once and the Wasm files are generated, you
can also optionally generate the types for the Wasm library (`$lib/wasm`):```sh
pnpm build:types
```### Building
To build for production, run:
```sh
pnpm build
```This will use the `@sveltejs/adapter-node` if building on Replit, otherwise it
will use `@sveltejs/adapter-auto`. To force it to use the Node adapter, run:```sh
ADAPTER=node pnpm build
```