rickycodes

1.6.17 • Public • Published

Goal

Write a CLI using rustlang targetting wasm so we can run on node and deploy with npx/npm

Building

cargo build --target=wasm32-unknown-emscripten --release

This moves files into:

./target/wasm32-unknown-emscripten/release/

Copy generated card.js and card.wasm into the root so the bin can read it:

mv ./target/wasm32-unknown-emscripten/release/card.* .

Done!

Once published the binary can be executed with npx:

npx rickycodes

Scripts are also discoverable in package.json

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i rickycodes

Weekly Downloads

1

Version

1.6.17

License

MIT

Unpacked Size

176 kB

Total Files

6

Last publish

Collaborators

  • rickycodes