mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
Add missing walltime import
This commit is contained in:
parent
8de9b3f88c
commit
7d3aebc546
@ -62,6 +62,10 @@ fn runtimeNanotime(_ctx: &mut Ctx, val: i32) {
|
|||||||
panic!("runtimeNanotime not yet implemented");
|
panic!("runtimeNanotime not yet implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn runtimeWalltime(_ctx: &mut Ctx, val: i32) {
|
||||||
|
panic!("runtimeWalltime not yet implemented");
|
||||||
|
}
|
||||||
|
|
||||||
fn runtimeScheduleCallback(_ctx: &mut Ctx, val: i32) {
|
fn runtimeScheduleCallback(_ctx: &mut Ctx, val: i32) {
|
||||||
panic!("runtimeScheduleCallback not yet implemented");
|
panic!("runtimeScheduleCallback not yet implemented");
|
||||||
}
|
}
|
||||||
@ -113,6 +117,7 @@ pub fn generate_golang_env() -> ImportObject {
|
|||||||
"runtime.wasmExit" => func!(crate::runtimeWasmExit),
|
"runtime.wasmExit" => func!(crate::runtimeWasmExit),
|
||||||
"runtime.wasmWrite" => func!(crate::runtimeWasmWrite),
|
"runtime.wasmWrite" => func!(crate::runtimeWasmWrite),
|
||||||
"runtime.nanotime" => func!(crate::runtimeNanotime),
|
"runtime.nanotime" => func!(crate::runtimeNanotime),
|
||||||
|
"runtime.walltime" => func!(crate::runtimeWalltime),
|
||||||
"runtime.scheduleCallback" => func!(crate::runtimeScheduleCallback),
|
"runtime.scheduleCallback" => func!(crate::runtimeScheduleCallback),
|
||||||
"runtime.clearScheduledCallback" => func!(crate::runtimeClearScheduledCallback),
|
"runtime.clearScheduledCallback" => func!(crate::runtimeClearScheduledCallback),
|
||||||
"runtime.getRandomData" => func!(crate::runtimeGetRandomData),
|
"runtime.getRandomData" => func!(crate::runtimeGetRandomData),
|
||||||
|
Loading…
Reference in New Issue
Block a user