Add function for embedding the runtime version in a wasm blob (#9277)

* Add function for embedding the runtime version in a wasm blob

This function can be used to add the custom section to a wasm blob with
the runtime version in it.

* Review nitpick
This commit is contained in:
Bastian Köcher
2021-07-06 12:41:27 +02:00
committed by GitHub
parent 279ff4b6e6
commit f781dcaf2c
6 changed files with 98 additions and 0 deletions
+3
View File
@@ -35,6 +35,9 @@ pub use sp_std;
#[cfg(feature = "std")]
use sp_runtime::{traits::Block as BlockT, generic::BlockId};
#[cfg(feature = "std")]
pub mod embed;
/// An attribute that accepts a version declaration of a runtime and generates a custom wasm section
/// with the equivalent contents.
///