53 releases (33 breaking)

0.41.0 Jan 7, 2025
0.40.1 Sep 25, 2024
0.40.0 Jul 18, 2024
0.35.0 Mar 18, 2024
0.8.0-alpha.5 Mar 24, 2020

#28 in #substrate

Download history 31182/week @ 2024-10-08 36053/week @ 2024-10-15 35476/week @ 2024-10-22 31414/week @ 2024-10-29 38660/week @ 2024-11-05 54309/week @ 2024-11-12 54167/week @ 2024-11-19 54399/week @ 2024-11-26 54235/week @ 2024-12-03 54585/week @ 2024-12-10 44929/week @ 2024-12-17 14920/week @ 2024-12-24 29002/week @ 2024-12-31 47873/week @ 2025-01-07 73658/week @ 2025-01-14 49601/week @ 2025-01-21

206,082 downloads per month
Used in 186 crates (25 directly)

GPL-3.0-or-later…

2.5MB
20K SLoC

Rust 17K SLoC // 0.1% comments WebAssembly 2.5K SLoC // 0.0% comments Shell 9 SLoC

A crate that provides means of executing/dispatching calls into the runtime.

There are a few responsibilities of this crate at the moment:

  • It provides an implementation of a common entrypoint for calling into the runtime, both wasm and compiled.
  • It defines the environment for the wasm execution, namely the host functions that are to be provided into the wasm runtime module.
  • It also provides the required infrastructure for executing the current wasm runtime (specified by the current value of :code in the provided externalities), i.e. interfacing with wasm engine used, instance cache.

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

Release

Polkadot SDK Stable 2412


lib.rs:

A crate that provides means of executing/dispatching calls into the runtime.

There are a few responsibilities of this crate at the moment:

  • It provides an implementation of a common entrypoint for calling into the runtime, both wasm and compiled.
  • It defines the environment for the wasm execution, namely the host functions that are to be provided into the wasm runtime module.
  • It also provides the required infrastructure for executing the current wasm runtime (specified by the current value of :code in the provided externalities), i.e. interfacing with wasm engine used, instance cache.

Dependencies

~43–58MB
~1M SLoC