From 52e9c5a0ff6ca38bdb8ed149a4fed4b961904449 Mon Sep 17 00:00:00 2001 From: Michael Birch Date: Mon, 14 Mar 2022 15:01:14 +0100 Subject: [PATCH] Fix features related to panic_info_message --- engine-precompiles/src/lib.rs | 1 - engine-sdk/src/lib.rs | 1 - engine/src/lib.rs | 5 ++++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/engine-precompiles/src/lib.rs b/engine-precompiles/src/lib.rs index 21e39a733..a7bfc88e9 100644 --- a/engine-precompiles/src/lib.rs +++ b/engine-precompiles/src/lib.rs @@ -1,7 +1,6 @@ #![allow(dead_code)] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), feature(alloc_error_handler))] -#![cfg_attr(feature = "log", feature(panic_info_message))] pub mod account_ids; pub mod blake2; diff --git a/engine-sdk/src/lib.rs b/engine-sdk/src/lib.rs index b0c18fafe..876bdf9ef 100644 --- a/engine-sdk/src/lib.rs +++ b/engine-sdk/src/lib.rs @@ -1,6 +1,5 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), feature(alloc_error_handler))] -#![cfg_attr(feature = "log", feature(panic_info_message))] #[cfg(feature = "contract")] use crate::prelude::Address; diff --git a/engine/src/lib.rs b/engine/src/lib.rs index 002310870..78a51c0ff 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -1,6 +1,9 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), feature(alloc_error_handler))] -#![cfg_attr(feature = "log", feature(panic_info_message))] +#![cfg_attr( + all(feature = "log", target_arch = "wasm32"), + feature(panic_info_message) +)] use aurora_engine_types::parameters::PromiseCreateArgs;