https://github.com/chunghha/wasm-poc
A WASM PoC in Deno/Rust
https://github.com/chunghha/wasm-poc
deno rust wasm
Last synced: about 2 months ago
JSON representation
A WASM PoC in Deno/Rust
- Host: GitHub
- URL: https://github.com/chunghha/wasm-poc
- Owner: chunghha
- Created: 2020-05-28T04:38:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T12:26:26.000Z (almost 6 years ago)
- Last Synced: 2025-08-03T19:41:22.404Z (11 months ago)
- Topics: deno, rust, wasm
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WASM POC
Build the wasm module,
```
❯ cd rwasm
❯ wasm-pack build
```
To run the app locally,
```
❯ deno run --allow-net --allow-read app.ts
```
From another terminal.
```
❯ curl --request POST --url http://localhost:8000/api --header 'content-type: application/json' --data '{
"type": "rust",
"rounds": 46340
}'
```
### Credits
[Turbo Boost Deno With Rust in 4 Steps](https://www.youtube.com/watch?v=YA4VC0UO0Ms)