https://github.com/uditdc/javy-test
https://github.com/uditdc/javy-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/uditdc/javy-test
- Owner: uditdc
- Created: 2023-12-05T21:09:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T14:44:54.000Z (over 2 years ago)
- Last Synced: 2024-04-01T16:32:28.061Z (over 2 years ago)
- Language: TypeScript
- Size: 464 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Javy js2wasm
===
This repository contains a set of examples, using Javy, to compile JS code to WASM.
Runtime: Wasmtime / Wasmedge
### Run with preloaded quickjs provider
Compile with dynamic linked provider
```
./bin/cli compile -d
```
Run with a preloaded provider:
```
echo '{ "n": 2, "v": "abc" }' | wasmtime run --preload javy_quickjs_provider_v1=./bin/provider.wasm build/index.wasm
```
Compile with experimental even loop:
```
cargo build --features=experimental_event_loop -p javy-core --target=wasm32-wasi -r
```