From c1c06d839d2bf2e0e8f5df32c1770ebf3d8c048d Mon Sep 17 00:00:00 2001 From: Muad'Dib Date: Fri, 12 Jun 2026 12:46:10 +0200 Subject: [PATCH] fix(ergotree-ir): add missing alloc imports to the SigmaBoolean json module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 072f8587 added std-prelude-style code (String::deserialize, .to_string()) to chain/json/sigma_protocol.rs without the alloc imports the crate uses elsewhere under no_std, breaking any build that resolves ergotree-ir with the json feature but without std — e.g. `cargo check -p ergo-nipopow`, which inherits default-features = false from the workspace dependency table. Workspace-wide builds (and CI) mask the breakage via feature unification, since some member always enables ergotree-ir/std. Co-Authored-By: Claude Fable 5 --- ergotree-ir/src/chain/json/sigma_protocol.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ergotree-ir/src/chain/json/sigma_protocol.rs b/ergotree-ir/src/chain/json/sigma_protocol.rs index 6ce868185..0b87614b4 100644 --- a/ergotree-ir/src/chain/json/sigma_protocol.rs +++ b/ergotree-ir/src/chain/json/sigma_protocol.rs @@ -13,6 +13,8 @@ use crate::sigma_protocol::sigma_boolean::ProveDlog; use crate::sigma_protocol::sigma_boolean::SigmaBoolean; use crate::sigma_protocol::sigma_boolean::SigmaConjecture; use crate::sigma_protocol::sigma_boolean::SigmaProofOfKnowledgeTree; +use alloc::string::String; +use alloc::string::ToString; use alloc::vec::Vec; use bounded_vec::BoundedVecOutOfBounds; use ergo_chain_types::EcPoint;