diff --git a/vm/src/stdlib/time.rs b/vm/src/stdlib/time.rs index 2c421db8f..e64d51f1a 100644 --- a/vm/src/stdlib/time.rs +++ b/vm/src/stdlib/time.rs @@ -97,7 +97,11 @@ mod decl { _time(vm) } - #[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))] + #[cfg(any( + not(target_arch = "wasm32"), + target_os = "wasi", + not(feature = "wasmbind") + ))] fn _time(vm: &VirtualMachine) -> PyResult { Ok(duration_since_system_now(vm)?.as_secs_f64()) }