Files
pezkuwi-sdk/substrate/utils/wasm-builder/Cargo.toml
T

71 lines
2.3 KiB
TOML

[package]
name = "substrate-wasm-builder"
version = "17.0.0"
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 }
filetime = { workspace = true }
jobserver = { workspace = true }
parity-wasm = { workspace = true }
polkavm-linker = { workspace = true }
sp-maybe-compressed-blob = { workspace = true, default-features = true }
strum = { features = ["derive"], workspace = true, default-features = true }
tempfile = { workspace = true }
toml = { workspace = true }
walkdir = { workspace = true }
wasm-opt = { workspace = true }
# Dependencies required for the `metadata-hash` feature.
array-bytes = { optional = true, workspace = true, default-features = true }
codec = { optional = true, workspace = true, default-features = true }
frame-metadata = { features = [
"current",
"unstable",
], optional = true, workspace = true, default-features = true }
merkleized-metadata = { optional = true, workspace = true }
sc-executor = { optional = true, workspace = true, default-features = true }
shlex = { workspace = true }
sp-core = { optional = true, workspace = true, default-features = true }
sp-io = { optional = true, workspace = true, default-features = true }
sp-tracing = { optional = true, workspace = true, default-features = true }
sp-version = { 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",
]
runtime-benchmarks = [
"sc-executor?/runtime-benchmarks",
"sp-io?/runtime-benchmarks",
"sp-version?/runtime-benchmarks",
]