diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 18:36:06 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 18:36:06 -0600 |
| commit | 8cdfa445d6629ffef4cb84967ff7017654045bc2 (patch) | |
| tree | 22f0b0907c024c78d26a731e2e1f5219407d8102 /vendor/time/src/interop/mod.rs | |
| parent | 4351c74c7c5f97156bc94d3a8549b9940ac80e3f (diff) | |
chore: add vendor directory
Diffstat (limited to 'vendor/time/src/interop/mod.rs')
| -rw-r--r-- | vendor/time/src/interop/mod.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/time/src/interop/mod.rs b/vendor/time/src/interop/mod.rs new file mode 100644 index 00000000..d562663c --- /dev/null +++ b/vendor/time/src/interop/mod.rs @@ -0,0 +1,28 @@ +//! Comparison, arithmetic, and conversion between various types in `time` and the standard library. +//! +//! Currently, full interoperability is present between [`OffsetDateTime`](crate::OffsetDateTime), +//! [`UtcDateTime`](crate::UtcDateTime), and [`SystemTime`](std::time::SystemTime). Partial +//! interoperability is present with [`js_sys::Date`]. Note that +//! [`PrimitiveDateTime`](crate::PrimitiveDateTime) is not interoperable with any of these types due +//! to the lack of an associated UTC offset. + +// Module names should have the two types sorted in alphabetical order. This avoids any question +// of which type should be the "primary" type in the module name. + +#[cfg(all( + target_family = "wasm", + not(any(target_os = "emscripten", target_os = "wasi")), + feature = "wasm-bindgen" +))] +mod js_sys_date_offsetdatetime; +#[cfg(all( + target_family = "wasm", + not(any(target_os = "emscripten", target_os = "wasi")), + feature = "wasm-bindgen" +))] +mod js_sys_date_utcdatetime; +#[cfg(feature = "std")] +mod offsetdatetime_systemtime; +mod offsetdatetime_utcdatetime; +#[cfg(feature = "std")] +mod utcdatetime_systemtime; |
