Skip to content

Commit

Permalink
less bytes!
Browse files Browse the repository at this point in the history
  • Loading branch information
AslD committed Jul 29, 2024
1 parent 842e0bc commit 02b4926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/assets/templates/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![no_std]
#[cfg(feature = "buddy-alloc")]
mod alloc;
mod wasm4;
Expand Down
5 changes: 5 additions & 0 deletions cli/assets/templates/rust/src/wasm4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,8 @@ extern "C" {
#[link_name = "traceUtf8"]
fn extern_trace(trace: *const u8, length: usize);
}

#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
core::arch::wasm32::unreachable();
}

0 comments on commit 02b4926

Please sign in to comment.