mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 18:28:01 +00:00
5aeff50e77
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.
37 lines
1.1 KiB
Rust
37 lines
1.1 KiB
Rust
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
|
|
// This file is part of Cumulus.
|
|
|
|
// Substrate is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Substrate is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#[cfg(feature = "std")]
|
|
fn main() {
|
|
use substrate_wasm_builder::WasmBuilder;
|
|
|
|
WasmBuilder::new()
|
|
.with_current_project()
|
|
.export_heap_base()
|
|
.import_memory()
|
|
.build();
|
|
|
|
WasmBuilder::new()
|
|
.with_current_project()
|
|
.enable_feature("increment-spec-version")
|
|
.import_memory()
|
|
.set_file_name("wasm_binary_spec_version_incremented.rs")
|
|
.build();
|
|
}
|
|
|
|
#[cfg(not(feature = "std"))]
|
|
fn main() {}
|