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 34844/week @ 2024-10-04 32822/week @ 2024-10-11 36644/week @ 2024-10-18 31897/week @ 2024-10-25 38739/week @ 2024-11-01 44637/week @ 2024-11-08 55355/week @ 2024-11-15 53302/week @ 2024-11-22 50522/week @ 2024-11-29 58005/week @ 2024-12-06 52850/week @ 2024-12-13 18002/week @ 2024-12-20 20081/week @ 2024-12-27 44951/week @ 2025-01-03 60837/week @ 2025-01-10 51743/week @ 2025-01-17

178,953 downloads per month
Used in 167 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

~57MB
~1M SLoC