1cfg_select! {
2 target_os = "motor" => {
3 use moto_rt::time as imp;
4 }
5 all(target_vendor = "fortanix", target_env = "sgx") => {
6 mod sgx;
7 use sgx as imp;
8 }
9 target_os = "solid_asp3" => {
10 mod solid;
11 use solid as imp;
12 }
13 target_os = "uefi" => {
14 mod uefi;
15 use uefi as imp;
16 }
17 any(target_os = "hermit", target_os = "teeos", target_family = "unix", target_os = "wasi") => {
18 mod unix;
19 use unix as imp;
20 }
21 target_os = "vexos" => {
22 mod vexos;
23 #[expect(unused)]
24 mod unsupported;
25
26 mod imp {
27 pub use super::unsupported::{SystemTime, UNIX_EPOCH};
28 pub use super::vexos::Instant;
29 }
30 }
31 target_os = "windows" => {
32 mod windows;
33 use windows as imp;
34 }
35 target_os = "xous" => {
36 mod xous;
37 use xous as imp;
38 }
39 _ => {
40 mod unsupported;
41 use unsupported as imp;
42 }
43}
44
45pub use imp::{Instant, SystemTime, UNIX_EPOCH};