https://github.com/jcaesar/wasmer-stack-trace-example
https://github.com/jcaesar/wasmer-stack-trace-example
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcaesar/wasmer-stack-trace-example
- Owner: jcaesar
- Created: 2021-10-14T12:00:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-14T12:00:40.000Z (over 4 years ago)
- Last Synced: 2025-04-04T01:11:58.312Z (10 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wasmer module with a stack trace
Building the guest (can be skipped, the result is checked in):
```
cargo build --manifest-path guest/Cargo.toml --release --target wasm32-unknown-unknown
cp guest/target/wasm32-unknown-unknown/release/stackpanic.wasm host/
```
Running the host:
```
cargo run --manifest-path host/Cargo.toml
```
The expected output:
```
RuntimeError: unreachable
::rust_begin_unwind
::core::panicking::panic_fmt
::core::panicking::panic
::stackpanic::c
::stackpanic::b
::a
```