From 84d8395bc78e4307e286c6e94d1f400f221551a1 Mon Sep 17 00:00:00 2001 From: Gregory Sobol Date: Wed, 2 Aug 2023 22:56:28 +0300 Subject: [PATCH] fix std feature in gear-wasm-instrument (#3013) --- utils/wasm-instrument/Cargo.toml | 2 +- utils/wasm-instrument/src/tests.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/wasm-instrument/Cargo.toml b/utils/wasm-instrument/Cargo.toml index 22ea87c8e90..a66f280081a 100644 --- a/utils/wasm-instrument/Cargo.toml +++ b/utils/wasm-instrument/Cargo.toml @@ -20,5 +20,5 @@ gear-core.workspace = true default = ["std"] std = [ "wasm-instrument/std", - "wasm-instrument/sign_ext", + "gear-backend-wasmi/std", ] diff --git a/utils/wasm-instrument/src/tests.rs b/utils/wasm-instrument/src/tests.rs index 6cbbcd31f03..4ed5a386d92 100644 --- a/utils/wasm-instrument/src/tests.rs +++ b/utils/wasm-instrument/src/tests.rs @@ -21,6 +21,7 @@ use crate::{ rules::CustomConstantCostRules, syscalls::{ParamType, SysCallName}, }; +use alloc::format; use elements::Instruction::*; use gas_metering::ConstantCostRules; use parity_wasm::serialize;