mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 21:31: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,10 +17,7 @@
|
||||
//! Basic parachain that executes forever.
|
||||
|
||||
#![no_std]
|
||||
#![cfg_attr(
|
||||
not(feature = "std"),
|
||||
feature(core_intrinsics, lang_items, core_panic_info, alloc_error_handler)
|
||||
)]
|
||||
#![cfg_attr(enable_alloc_error_handler, feature(alloc_error_handler))]
|
||||
|
||||
// Make the WASM binary available.
|
||||
#[cfg(feature = "std")]
|
||||
@@ -39,10 +36,10 @@ pub fn wasm_binary_unwrap() -> &'static [u8] {
|
||||
#[panic_handler]
|
||||
#[no_mangle]
|
||||
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||||
core::intrinsics::abort()
|
||||
core::arch::wasm32::unreachable();
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[cfg(enable_alloc_error_handler)]
|
||||
#[alloc_error_handler]
|
||||
#[no_mangle]
|
||||
pub fn oom(_: core::alloc::Layout) -> ! {
|
||||
|
||||
Reference in New Issue
Block a user