Introduce the wasmtime-explorer crate (#5975)

This implements Godbolt Compiler Explorer-like functionality for Wasmtime and
Cranelift. Given a Wasm module, it compiles the module to native code and then
writes a standalone HTML file that gives a split pane view between the WAT and
ASM disassemblies.
This commit is contained in:
Nick Fitzgerald
2023-03-10 16:33:06 -08:00
committed by GitHub
parent 264089e29d
commit 9ed441e657
11 changed files with 544 additions and 6 deletions

14
Cargo.lock generated
View File

@@ -3533,6 +3533,7 @@ dependencies = [
"wasmtime-component-util",
"wasmtime-cranelift",
"wasmtime-environ",
"wasmtime-explorer",
"wasmtime-runtime",
"wasmtime-wasi",
"wasmtime-wasi-crypto",
@@ -3647,6 +3648,19 @@ dependencies = [
"wat",
]
[[package]]
name = "wasmtime-explorer"
version = "8.0.0"
dependencies = [
"anyhow",
"capstone",
"serde",
"serde_json",
"target-lexicon",
"wasmprinter",
"wasmtime",
]
[[package]]
name = "wasmtime-fiber"
version = "8.0.0"