Registry / other / wasmtime-jit

wasmtime-jit

JSON →
library17.0.3rscratesunverified

JIT-style execution for WebAsssembly code in Cranelift

# Cargo.toml [dependencies] wasmtime-jit = "17.0.3"
INSTALL
IMPORT
SIG · WASMTIME-JIT
W
wasmtime-jit
otherrustv17.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JITEngine
use wasmtime_jit::JITEngine;

Compiles a WebAssembly module using JIT.

use wasmtime_jit::JITEngine; fn main() -> Result<(), Box<dyn std::error::Error>> { let engine = JITEngine::new()?; let module = engine.compile("(module)")?; println!("Compiled module: {:?}", module); Ok(()) }
Debug
Known issues
gotchaRequires the `cranelift` feature; may not work on all platforms.
fix
Enable the `cranelift` feature in Cargo.toml.
affects: >=17.0.0
Upgrade
Version history
17.0.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
wasmtime-jit — cargo add wasmtime-jit · libregistry