From 02f8dfc592e6f30e5d83c22895b5582b8095d60c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 23 Jul 2026 15:03:19 -0700 Subject: [PATCH] Change `cabi_realloc` gates to WASIp1-only These were originally added when Rust first added `target_env = "p1"` but that's been there long enough now. These are only needed on WASIp1 and WASIp2/3 targets have this symbol provided by wasi-libc. --- crates/guest-rust/src/rt/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/guest-rust/src/rt/mod.rs b/crates/guest-rust/src/rt/mod.rs index e62c52640..c5696f928 100644 --- a/crates/guest-rust/src/rt/mod.rs +++ b/crates/guest-rust/src/rt/mod.rs @@ -111,7 +111,7 @@ impl WitMap for std::collections::HashMap