An open API service indexing awesome lists of open source software.

https://github.com/jcaesar/wasmer-stack-trace-example


https://github.com/jcaesar/wasmer-stack-trace-example

Last synced: 7 months ago
JSON representation

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
```