Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit e64c8ab

Browse files
committed
Add the eh_personality function for non-wasm targets
1 parent b6c9fe4 commit e64c8ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ extern "C" fn oom() -> ! {
3434
}
3535
}
3636

37+
// Needed for non-wasm targets.
38+
#[lang = "eh_personality"]
39+
pub extern "C" fn eh_personality() {}
40+
3741
// Now, use the allocator via `alloc` types! ///////////////////////////////////
3842

3943
use alloc::boxed::Box;

0 commit comments

Comments
 (0)