Skip to content

Commit

Permalink
Fix host exports naming
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Sep 21, 2023
1 parent cee639f commit 2db69a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions rust/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ pub fn now() -> DateTime<Utc> {
let mut uninit = MaybeUninit::<chrono::DateTime<Utc>>::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);
}

0 comments on commit 2db69a9

Please sign in to comment.