https://github.com/fschutt/sharedwasm
Example Wasm32-WASI library for testcase reproduction
https://github.com/fschutt/sharedwasm
Last synced: 2 months ago
JSON representation
Example Wasm32-WASI library for testcase reproduction
- Host: GitHub
- URL: https://github.com/fschutt/sharedwasm
- Owner: fschutt
- Created: 2022-06-30T08:52:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-30T08:52:59.000Z (almost 4 years ago)
- Last Synced: 2025-12-07T09:19:22.956Z (6 months ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sharedwasm
Example test-case to build a WASM32-WASI library:
```sh
# Build (install rustup target first)
cargo +nightly build -Zbuild-std --release --target wasm32-wasi
# Unpack .rlib into object file
ar -x ./target/wasm32-wasi/release/libsharedwasm.rlib
# Install wasm disassembly tools
sudo apt install wabt
wasm-objdump -d ./sharedwasm-58cd299b3f128130.sharedwasm.2a7776b6-cgu.0.rcgu.o
```