Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T15:23:14.000Z (over 2 years ago)
- Last Synced: 2024-04-14T16:12:04.313Z (7 months 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