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.
19 lines
601 B
TOML
19 lines
601 B
TOML
[package]
|
|
name = "wasmtime-explorer"
|
|
authors.workspace = true
|
|
description = "Compiler explorer for Wasmtime and Cranelift"
|
|
documentation = "https://docs.rs/wasmtime-explorer/"
|
|
edition.workspace = true
|
|
license = "Apache-2.0 WITH LLVM-exception"
|
|
repository = "https://github.com/bytecodealliance/wasmtime"
|
|
version.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
capstone = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
target-lexicon = { workspace = true }
|
|
wasmprinter = { workspace = true }
|
|
wasmtime = { workspace = true, features = ["cranelift"] }
|