mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
Companion: wasm-builder support stable Rust (#6967)
* Companion: wasm-builder support stable Rust
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -17,5 +17,17 @@
|
||||
use substrate_wasm_builder::WasmBuilder;
|
||||
|
||||
fn main() {
|
||||
WasmBuilder::new().with_current_project().export_heap_base().build()
|
||||
WasmBuilder::new().with_current_project().export_heap_base().build();
|
||||
|
||||
enable_alloc_error_handler();
|
||||
}
|
||||
|
||||
#[rustversion::before(1.68)]
|
||||
fn enable_alloc_error_handler() {
|
||||
if !cfg!(feature = "std") {
|
||||
println!("cargo:rustc-cfg=enable_alloc_error_handler");
|
||||
}
|
||||
}
|
||||
|
||||
#[rustversion::since(1.68)]
|
||||
fn enable_alloc_error_handler() {}
|
||||
|
||||
Reference in New Issue
Block a user