Improve build times by disabling wasm-builder in no_std (#2308)

There is no need to compile wasm-builder in `no_std` as we skip the compilation of the crate any
way. So, we can also directly disable wasm-builder as dependency in `no_std` to improve build times.
This commit is contained in:
Bastian Köcher
2023-03-20 09:53:09 +01:00
committed by GitHub
parent 7d722ec814
commit 5aeff50e77
28 changed files with 239 additions and 75 deletions
@@ -77,7 +77,7 @@ hex-literal = "0.3.4"
asset-test-utils = { path = "../test-utils"}
[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
[features]
default = [ "std" ]
@@ -179,4 +179,5 @@ std = [
"parachain-info/std",
"parachains-common/std",
"assets-common/std",
"substrate-wasm-builder",
]