49 releases (28 breaking)

0.36.0 Jan 7, 2025
0.35.0 Jun 21, 2024
0.34.0 May 23, 2024
0.32.0 Mar 18, 2024
0.8.0-alpha.5 Mar 24, 2020

#36 in #defines

Download history 33213/week @ 2024-10-12 37707/week @ 2024-10-19 29836/week @ 2024-10-26 38748/week @ 2024-11-02 48995/week @ 2024-11-09 54066/week @ 2024-11-16 57404/week @ 2024-11-23 44143/week @ 2024-11-30 63684/week @ 2024-12-07 47879/week @ 2024-12-14 14735/week @ 2024-12-21 23694/week @ 2024-12-28 44664/week @ 2025-01-04 69424/week @ 2025-01-11 59827/week @ 2025-01-18 48253/week @ 2025-01-25

227,896 downloads per month
Used in 163 crates (4 directly)

GPL-3.0-or-later…

390KB
5.5K SLoC

Rust 3.5K SLoC // 0.1% comments WebAssembly 2.5K SLoC // 0.0% comments

License: GPL-3.0-or-later WITH Classpath-exception-2.0

Release

Polkadot SDK Stable 2412


lib.rs:

Defines a WasmRuntime that uses the Wasmtime JIT to execute.

You can choose a profiling strategy at runtime with environment variable WASMTIME_PROFILING_STRATEGY:

WASMTIME_PROFILING_STRATEGY Effect
undefined No profiling
"jitdump" jitdump profiling
other value No profiling (warning)

Dependencies

~43–61MB
~1M SLoC