[package] name = "substrate-wasm-builder" version = "24.0.1" authors.workspace = true description = "Utility for building WASM binaries" edition.workspace = true repository.workspace = true license = "Apache-2.0" homepage.workspace = true [lints] workspace = true [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] [dependencies] build-helper = { workspace = true } cargo_metadata = { workspace = true } console = { workspace = true } strum = { features = ["derive"], workspace = true, default-features = true } tempfile = { workspace = true } toml = { workspace = true } walkdir = { workspace = true } sp-maybe-compressed-blob.workspace = true sp-maybe-compressed-blob.default-features = true filetime = { workspace = true } wasm-opt = { workspace = true } parity-wasm = { workspace = true } polkavm-linker = { workspace = true } jobserver = { workspace = true } # Dependencies required for the `metadata-hash` feature. merkleized-metadata = { optional = true, workspace = true } sc-executor = { optional = true, workspace = true, default-features = true } sp-core = { optional = true, workspace = true, default-features = true } sp-io = { optional = true, workspace = true, default-features = true } sp-version = { optional = true, workspace = true, default-features = true } frame-metadata = { features = ["current"], optional = true, workspace = true, default-features = true } codec = { optional = true, workspace = true, default-features = true } array-bytes = { optional = true, workspace = true, default-features = true } sp-tracing = { optional = true, workspace = true, default-features = true } [features] # 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. metadata-hash = [ "array-bytes", "codec", "frame-metadata", "merkleized-metadata", "sc-executor", "sp-core", "sp-io", "sp-tracing", "sp-version", ]