fret-core 0.1.0

Core contracts, IDs, geometry, events, and shared data types for the Fret framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Cross-platform time primitives.
//!
//! `std::time::Instant` is not available on `wasm32-unknown-unknown`, so we use `web_time` there.

pub use std::time::Duration;

#[cfg(target_arch = "wasm32")]
pub use web_time::{Instant, SystemTime, UNIX_EPOCH};

#[cfg(not(target_arch = "wasm32"))]
pub use std::time::{Instant, SystemTime, UNIX_EPOCH};