mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 11:18: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.
14 lines
307 B
Rust
14 lines
307 B
Rust
#[cfg(feature = "std")]
|
|
fn main() {
|
|
substrate_wasm_builder::WasmBuilder::new()
|
|
.with_current_project()
|
|
.export_heap_base()
|
|
.import_memory()
|
|
.build()
|
|
}
|
|
|
|
/// The wasm builder is deactivated when compiling
|
|
/// this crate for wasm to speed up the compilation.
|
|
#[cfg(not(feature = "std"))]
|
|
fn main() {}
|