diff --git a/crates/pumpkin-plugin-utils/src/lib.rs b/crates/pumpkin-plugin-utils/src/lib.rs index e1bc48171..859a49e0e 100644 --- a/crates/pumpkin-plugin-utils/src/lib.rs +++ b/crates/pumpkin-plugin-utils/src/lib.rs @@ -190,3 +190,16 @@ pub fn evaluate_license(grace_period_days: u32) -> LicenseStatus { let checker = LicenseChecker::new(folder); checker.evaluate_license(meta, grace_period_days) } + +/// Stub for component model `cabi_realloc` +/// Remove me after bytecodealliance/wit-bindgen#1697 makes it to release +#[cfg(not(target_arch = "wasm32"))] +#[unsafe(no_mangle)] +pub extern "C" fn cabi_realloc( + _old_ptr: *mut u8, + _old_len: usize, + _align: usize, + _new_len: usize, +) -> *mut u8 { + panic!("Call to cabi_realloc on native?") +}