Wasm rust

From bibbleWiki
Revision as of 07:35, 28 September 2024 by Iwiseman (talk | contribs) (Created page with "=Introduction= Getting start was not easy. This was more due to the npm half of the deal. =create-wasm-app= There is something called create-wasm-app which creates a template for rust. When I used it I could not get it to work. To fix this I had to first install the app locally and the create a package.json with a dependency <syntaxhighlight lang="bash"> # Install npm install -g create-wasm-app # List where it is npm list -g // Mine was /home/iwiseman/.nvm/versions/no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Getting start was not easy. This was more due to the npm half of the deal.

create-wasm-app

There is something called create-wasm-app which creates a template for rust. When I used it I could not get it to work. To fix this I had to first install the app locally and the create a package.json with a dependency

# Install
npm install -g create-wasm-app
# List where it is 
npm list -g
// Mine was  /home/iwiseman/.nvm/versions/node/v22.8.0/lib

Now make the package.json

{
  "dependencies": {
    "create-wasm-app": "/home/iwiseman/.nvm/versions/node/v22.8.0/lib/node_modules/create-wasm-app"
  }
}

Now create the app

npm init wasm-app www