Stream: git-wasmtime

Topic: wasmtime / issue #8262 Should Duration be re-exported to ...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2024 at 23:36):

alexanderkjeldaas opened issue #8262:

wasmtime-wasi/src/clocks.rs

use cap_std::time::Duration;

pub trait HostWallClock: Send {
    fn resolution(&self) -> Duration;
    fn now(&self) -> Duration;
}

Should Duration be exported from the wasi library to allow implementation of this trait?

view this post on Zulip Wasmtime GitHub notifications bot (Mar 29 2024 at 16:24):

alexcrichton commented on issue #8262:

I believe cap_std::time::Duration is itself a reexport of std::time::Duration, although adding a reexport to wasmtime-wasi also seems ok.


Last updated: Nov 22 2024 at 16:03 UTC