git.delta.rocks / unique-network / refs/commits / 8aa0346308d8

difftreelog

build only build wasm when needed

Yaroslav Bolyukin2022-05-06parent: #81ed837.patch.diff
in: master

4 files changed

modifiednode/cli/src/command.rsdiffbeforeafterboth
405405
406 cmd.run(config, partials.client.clone(), db, storage)406 cmd.run(config, partials.client.clone(), db, storage)
407 }),407 }),
408 BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
408 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),409 BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
409 }410 }
410 }411 }
modifiedruntime/opal/build.rsdiffbeforeafterboth
--- a/runtime/opal/build.rs
+++ b/runtime/opal/build.rs
@@ -14,10 +14,9 @@
 // You should have received a copy of the GNU General Public License
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
-use substrate_wasm_builder::WasmBuilder;
-
 fn main() {
-	WasmBuilder::new()
+	#[cfg(feature = "std")]
+	substrate_wasm_builder::WasmBuilder::new()
 		.with_current_project()
 		.import_memory()
 		.export_heap_base()
modifiedruntime/quartz/build.rsdiffbeforeafterboth
--- a/runtime/quartz/build.rs
+++ b/runtime/quartz/build.rs
@@ -1,7 +1,6 @@
-use substrate_wasm_builder::WasmBuilder;
-
 fn main() {
-	WasmBuilder::new()
+	#[cfg(feature = "std")]
+	substrate_wasm_builder::WasmBuilder::new()
 		.with_current_project()
 		.import_memory()
 		.export_heap_base()
modifiedruntime/unique/build.rsdiffbeforeafterboth
--- a/runtime/unique/build.rs
+++ b/runtime/unique/build.rs
@@ -1,7 +1,6 @@
-use substrate_wasm_builder::WasmBuilder;
-
 fn main() {
-	WasmBuilder::new()
+	#[cfg(feature = "std")]
+	substrate_wasm_builder::WasmBuilder::new()
 		.with_current_project()
 		.import_memory()
 		.export_heap_base()