tsdk/entrypoint: Unexport __drkruntime_mem_alloc symbol from the crate. - wasm-runtime - A wasm runtime
HTML git clone https://git.parazyd.org/wasm-runtime
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 09718b1aef011ebe10f7aeb210aa84bd4e2ff0b4
DIR parent f685dafefe02abe700e5b56013d79e2b74e7b6c0
HTML 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:
M drk-sdk/src/entrypoint.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/drk-sdk/src/entrypoint.rs b/drk-sdk/src/entrypoint.rs
t@@ -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) {