https://github.com/dipankardas011/wasm-playground
https://github.com/dipankardas011/wasm-playground
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dipankardas011/wasm-playground
- Owner: dipankardas011
- Created: 2024-01-19T14:24:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T14:30:28.000Z (over 1 year ago)
- Last Synced: 2025-02-16T18:25:37.580Z (8 months ago)
- Language: JavaScript
- Size: 5.28 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-add.md
Awesome Lists containing this project
README
# Add
to try it out
you need to```bash
cargo install cargo-component
``````bash
cd add
cargo component build --release
```it attaches the wit to the implementation into a single wasm component
to use it we need some wasm runner (Sorry for any incorrect word choices)
```bash
# cd into the submodule to get a prefabricated runner
cd component-docs/component-model/examples/example-host/
``````bash
cargo run --release -- 1 2 add/target/wasm32-wasi/release/add.wasm
```> it should return you with result