https://github.com/rickycodes/card
npx business card built with rust targeting wasm
https://github.com/rickycodes/card
binary cli npx rustlang wasm
Last synced: 10 months ago
JSON representation
npx business card built with rust targeting wasm
- Host: GitHub
- URL: https://github.com/rickycodes/card
- Owner: rickycodes
- License: mit
- Created: 2020-03-29T16:17:38.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T15:23:14.000Z (almost 4 years ago)
- Last Synced: 2025-04-14T11:06:15.814Z (about 1 year ago)
- Topics: binary, cli, npx, rustlang, wasm
- Language: Rust
- Homepage:
- Size: 206 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](bin.js) 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](package.json#L9)
## License
MIT