mwp

    WASM runtime environment detection tool. Probes installed WASM runtimes (wasmtime, wasmer, wazero, node, etc.) and MoonBit WASM compilation target info.

    wasm
    wasmtime
    wasmer
    wazero
    probe
    detection
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    4 months ago
    Downloads
    45

    #mwp

    WASM runtime environment detection tool.

    Detects installed WASM runtimes on your system: wasmtime, wasmer, wazero, Node.js, Bun, Deno.

    #Usage

    moon add 0xA672/mwp

    #Sample Output

    WASM Runtime Environment Report ================================ Version: MoonBit : moon 0.1.20260512 (81d40e3 2026-05-12) Installed WASM Runtimes: [X] node (v24.14.1) [/home/user/.nvm/versions/node/v24.14.1/bin/node] [X] bun (1.3.11) [/usr/bin/bun] [X] deno (deno 2.7.12 (stable, release, x86_64-unknown-linux-gnu)) [/usr/local/bin/deno] Uninstalled Runtimes: [ ] wasmtime [ ] wasmer [ ] wazero

    #Notes

    • This tool uses C FFI (popen) and can only run on native targets (not wasm-gc).
    • Building requires cc (C compiler) and the MoonBit toolchain.

    RuntimeProbe

    pub struct RuntimeProbe {
    name : String
    kind : RuntimeType
    installed : Bool
    version : String?
    path : String?
    }
    Result for a single runtime probe.

    RuntimeType

    pub enum RuntimeType {
    Wasmtime
    Wasmer
    Wazero
    Node
    Bun
    Deno
    }
    WASM runtime type detected on the system.

    WASMEnvReport

    pub struct WASMEnvReport {
    moon_version : String
    runtimes : Array[RuntimeProbe]
    }
    Overall WASM environment report.

    probe_all

    fn probe_all() -> WASMEnvReport
    Probe all supported WASM runtimes.

    report_to_string

    fn report_to_string(report : WASMEnvReport) -> String
    Format the report as a readable string.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io