mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
0849bcce0e
* emit a custom section from impl_runtime_apis! This change emits a custom section from the impl_runtime_apis! proc macro. Each implemented API will result to emitting a link section `runtime_apis`. During linking all sections with this name will be concatenated and placed into the final wasm binary under the same name. * Introduce `runtime_version` proc macro This macro takes an existing `RuntimeVersion` const declaration, parses it and emits the version information in form of a linking section. Ultimately such a linking section will result into a custom wasm section. * Parse custom wasm section for runtime version * Apply suggestions from code review Co-authored-by: David <dvdplm@gmail.com> * Fix sc-executor integration tests * Nits Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Refactor apis section deserialization * Fix version decoding * Reuse uncompressed value for CallInWasm * Log on decompression error * Simplify if * Reexport proc-macro from sp_version * Merge ReadRuntimeVersionExt * Export `read_embedded_version` * Fix test * Simplify searching for custom section Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
[package]
|
|
name = "sc-executor-common"
|
|
version = "0.9.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "A set of common definitions that are needed for defining execution engines."
|
|
documentation = "https://docs.rs/sc-executor-common/"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
derive_more = "0.99.2"
|
|
parity-wasm = "0.41.0"
|
|
pwasm-utils = "0.14.0"
|
|
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
|
wasmi = "0.6.2"
|
|
sp-core = { version = "3.0.0", path = "../../../primitives/core" }
|
|
sp-allocator = { version = "3.0.0", path = "../../../primitives/allocator" }
|
|
sp-wasm-interface = { version = "3.0.0", path = "../../../primitives/wasm-interface" }
|
|
sp-maybe-compressed-blob = { version = "3.0.0", path = "../../../primitives/maybe-compressed-blob" }
|
|
sp-serializer = { version = "3.0.0", path = "../../../primitives/serializer" }
|
|
thiserror = "1.0.21"
|
|
|
|
[features]
|
|
default = []
|