Cargo Features

substrate-wasm-builder has no features set by default.

[dependencies]
substrate-wasm-builder = { version = "24.0.1", features = ["metadata-hash"] }
metadata-hash = array-bytes, codec, frame-metadata, merkleized-metadata, sc-executor, sp-core, sp-io, sp-tracing, sp-version

Enable support for generating the metadata hash.

To generate the metadata hash the runtime is build once, executed to build the metadata and then build a second time with the RUNTIME_METADATA_HASH environment variable set. The environment variable then contains the hash and can be used inside the runtime.

This pulls in quite a lot of dependencies and thus, is disabled by default.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

merkleized-metadata metadata-hash?

Enables merkleized-metadata

Dependencies required for the metadata-hash feature.

sc-executor metadata-hash?
sp-core metadata-hash?
sp-io metadata-hash?
sp-version metadata-hash?
frame-metadata metadata-hash?

Enables frame-metadata ^16.0.0

codec metadata-hash?

Enables parity-scale-codec

array-bytes metadata-hash?
sp-tracing metadata-hash?