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
+4
View File
@@ -21,6 +21,8 @@ codec = { package = "parity-scale-codec", version = "2.0.0", default-features =
sp-std = { version = "3.0.0", default-features = false, path = "../std" }
sp-runtime = { version = "3.0.0", default-features = false, path = "../runtime" }
sp-version-proc-macro = { version = "3.0.0", default-features = false, path = "proc-macro" }
parity-wasm = { version = "0.42.2", optional = true }
thiserror = { version = "1.0.21", optional = true }
[features]
default = ["std"]
@@ -30,4 +32,6 @@ std = [
"codec/std",
"sp-std/std",
"sp-runtime/std",
"parity-wasm",
"thiserror",
]