https://github.com/zebp/wasi-example-zstd
Compile zstd command-line interface to WASM using WASI
https://github.com/zebp/wasi-example-zstd
Last synced: about 2 months ago
JSON representation
Compile zstd command-line interface to WASM using WASI
- Host: GitHub
- URL: https://github.com/zebp/wasi-example-zstd
- Owner: zebp
- Created: 2022-07-06T17:20:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T17:25:10.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T05:49:36.707Z (about 2 months ago)
- Language: Makefile
- Size: 1000 Bytes
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Zstandard on WASI
Compile zstd command-line interface to WASM using WASI
Build
```
make -j
```Test in wasmtime
```
echo "Hello world!" | wasmtime run build/zstd.wasm -- -
```Test in a worker!
```
wrangler dev build/zstd.wasm -- -echo "Hello world!" | curl https:// -X POST --data-binary @-
```