From 2db69a981feb733cf60ab0fb18abc13721481db0 Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Thu, 21 Sep 2023 12:07:57 +0200 Subject: [PATCH] Fix host exports naming --- rust/Cargo.toml | 2 +- rust/src/time.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 82df612..a2d157f 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "freenet-stdlib" -version = "0.0.4" +version = "0.0.5" edition = "2021" rust-version = "1.71.1" publish = true diff --git a/rust/src/time.rs b/rust/src/time.rs index dc32bfa..c844533 100644 --- a/rust/src/time.rs +++ b/rust/src/time.rs @@ -8,14 +8,14 @@ pub fn now() -> DateTime { let mut uninit = MaybeUninit::>::uninit(); let ptr = uninit.as_mut_ptr() as usize as i64; unsafe { - __loc__time__utc_now(crate::global::INSTANCE_ID, ptr); + __frnt__time__utc_now(crate::global::INSTANCE_ID, ptr); uninit.assume_init(); std::mem::transmute(uninit) } } -#[link(wasm_import_module = "locutus_time")] +#[link(wasm_import_module = "freenet_time")] extern "C" { #[doc(hidden)] - fn __loc__time__utc_now(id: i64, ptr: i64); + fn __frnt__time__utc_now(id: i64, ptr: i64); }