wasm-runtime

A wasm runtime
git clone https://git.parazyd.org/wasm-runtime
Log | Files | Refs | README | LICENSE

commit 09718b1aef011ebe10f7aeb210aa84bd4e2ff0b4
parent f685dafefe02abe700e5b56013d79e2b74e7b6c0
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 11 Mar 2022 19:09:08 +0100

sdk/entrypoint: Unexport __drkruntime_mem_alloc symbol from the crate.

Diffstat:
Mdrk-sdk/src/entrypoint.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drk-sdk/src/entrypoint.rs b/drk-sdk/src/entrypoint.rs @@ -40,7 +40,7 @@ pub unsafe fn deserialize<'a>(input: *mut u8) -> &'a [u8] { /// Allocate a piece of memory in the wasm VM #[no_mangle] #[cfg(target_arch = "wasm32")] -pub extern "C" fn __drkruntime_mem_alloc(size: usize) -> *mut u8 { +extern "C" fn __drkruntime_mem_alloc(size: usize) -> *mut u8 { let align = std::mem::align_of::<usize>(); if let Ok(layout) = std::alloc::Layout::from_size_align(size, align) {