Files
guba-indicator/rust/target/debug/deps/libweb_time-a21bed26b74d44a9.rmeta

10 lines
11 KiB
Plaintext
Raw Normal View History

rust
<EFBFBD>(#rustc 1.93.1 (01f6ddf75 2026-02-11)<29><02>ZF<5A>P<EFBFBD><50>v<EFBFBD><76><EFBFBD>]<5D>d9uu-4d8b4da6b4ab36bd<62><02><05><11><><EFBFBD>GȬx<C8AC>92X<32>l-5bed970bceb2abc5<63><02>.g<>:<3A><>Ld<4C><64>q<EFBFBD>T<EFBFBD>d-f090014afa110f38<33><02>L<><4C><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD>E,<07>R<EFBFBD><52>-3d16dd14375d91ab<61><02><11>b';<3B><>ݕ<EFBFBD><DD95>+<2B><>74-cda84f9d48ee8a39<33>rustc_std_workspace_core<72><65><EFBFBD><EFBFBD><EFBFBD>7]<5D><><EFBFBD><1F>}^-d51aa419dcaa4806<30> hashbrown<77>\<5C><01><><EFBFBD>Y8 <0A> <0B>9!~-828ad423d679028a<38>rustc_std_workspace_alloc<6F>)Z<7F><5A>T+@<15>U<EFBFBD><15><><EFBFBD>-456872f450a959d9<64>
std_detect<EFBFBD><EFBFBD><<03>dpܞ.P\aܘ<61>L-20f4fe7d6fc49ef1<66>rustc_demangle<6C> $<24><><EFBFBD><EFBFBD><EFBFBD>.<2E>u
@<40><>!-8707d0f6cef74754<35>windows_targets<74>aG<61>"T<>S<EFBFBD><53><02><>i-a000ab9e204fd71e<31>cfg_if<69>S]<5D><><EFBFBD><EFBFBD>]<5D><>8RH<52><48>-be85b4d8c54eea3b<33><02> <0C><08><><EFBFBD><EFBFBD>N<EFBFBD>}<7D>]<5D><>y^-a8029966e34624a3<61>time<6D>$<24>,<02>l<>+wasm<73>4<EFBFBD>+<00><>+web<65><1C>-<02>l<>,<01>4<>,<00><>,<02>L<>,unknown<77>L<EFBFBD>,<00><>,<00><>,/docsrs<72>4<EFBFBD>,<05><>,<<02><02>
UNIX_EPOCH<EFBFBD>U<EFBFBD><EFBFBD>] <01>;<02>=<3D>4]<01>N
SystemTime<EFBFBD>U<EFBFBD>W]<01>NSystemTimeError<6F>}<7D>\]<01>N<02>E<>]ÖTryFromFloatSecsError<6F><72><EFBFBD>]ؖ<03><00>.<00> # Description<6F><02><00>JG Complete drop-in replacement for [`std::time`] that works in browsers.<2E>a<02><00>eLI Currently [`Instant::now()`] and [`SystemTime::now()`] will simply panic<69><00><>LI when using the `wasm32-unknown-unknown` target. This implementation uses<65><00><>OL [`Performance.now()`] for [`Instant`] and [`Date.now()`] for [`SystemTime`]<5D><00><>:7 to offer a drop-in replacement that works in browsers.<2E><1C><02><00><>MJ At the same time the library will simply re-export [`std::time`] when not<6F><00><>FC using the `wasm32-unknown-unknown` target and will not pull in any<6E><00><> dependencies.<2E><1C><02><00><>GD Additionally, if compiled with `target-feature = "atomics"` it will<6C><00><>KH synchronize the timestamps to account for different context's, like web<65><00><>A> workers. See [`Performance.timeOrigin`] for more information.<2E><1C><02><00><>NK Using `-Ctarget-feature=+nontrapping-fptoint` will improve the performance<63><00><>MJ of [`Instant::now()`] and [`SystemTime::now()`], but the vast majority of<6F><00><>-* the time is still spent going through JS.<2E><1C><02>d<> # Target<65><1C><02><00><><9 This library specifically targets browsers, that support<72><00><>OL [`Performance.now()`], with the `wasm32-unknown-unknown` target. Emscripten<65><00><> PM is not supported. WASI doesn't require support as it has it's own native API<50><00><>  to deal with [`std::time`].<2E><1C> <02><00><> OL Furthermore it depends on [`wasm-bindgen`], which is required. This library<72><00><>
PM will continue to depend on it until a viable alternative presents itself, in<69><00><> 63 which case multiple ecosystems could be supported.<2E><1C> <02>T<>  # Note<74><1C> <02><00><>  ## Ticking during sleep<65><1C> <02><00><> NK Currently a known bug is affecting browsers on operating system other then<65><00><> KH Windows. This bug prevents [`Instant`] from continuing to tick when the<68><00><> PM context is asleep. This doesn't necessarily conflict with Rusts requirements<74><00><> 2/ of [`Instant`], but might still be unexpected.<2E><1C><02><00><><0E><00> See [the MDN documentation on this](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now#ticking_during_sleep) for more information.<2E><1C><02><00><> ## Context support<72><1C><02><00><>NK The implementation of [`Instant::now()`] relies on the availability of the<68><00><>NK [`Performance` object], a lack thereof will cause a panic. This can happen<65><00><> if called from a [worklet].<2E><1C><02>\<5C> # Usage<67><1C><02><00><>-* You can simply import the types you need:<3A>\<5C> ```rust<73><00><>(% use web_time::{Instant, SystemTime};<3B><1C><02><00><> let now = Instant::now();<3B><00><>! let time = SystemTime::now();<3B><<3C> ```<60><1C><02>t<> # Features<65><1C><02>t<> ## `serde`<60><1C><02><00><>B? Implements [`serde::Deserialize`] and [`serde::Serialize`] for<6F><00><> [`SystemTime`].<2E><1C><02>T<> # MSRV<52><1C><02><00><>NK As this library heavily relies on [`wasm-bindgen`] the MSRV depends on it.<2E><00><>;8 At the point of time this was written the MSRV is 1.60.<2E><1C><02><00><> # Alternatives<65><1C><02><00><><15><00> [instant](https://crates.io/crates/instant) [![Crates.io](https://img.shields.io/crates/v/instant.svg)](https://crates.io/crates/instant) is a popular alternative! However the API it implements doesn't match [`std::time`] exactly.<2E><1C><02><00><> # Contributing<6E><1C><02><00><>,) See the [CONTRIBUTING] file for details.<2E><1C><02><00><> # Attribution<6F><1C><02><00><>he Inspiration was taken from the [instant](https://github.com/sebcrozet/instant/tree/v0.1.12) project.<2E><1C><02><00><>gd Additional insight was taken from the [time](https://github.com/time-rs/time/tree/v0.3.20) project.<2E><1C><02>|<7C> # Changelog<6F><1C><02><00><>)& See the [CHANGELOG] file for details.<2E><1C><02>l<>
# License<73><1C><02><00><> Licensed under either of<6F><1C><02><00><>da - Apache License, Version 2.0 ([LICENSE-APACHE] or <http://www.apache.org/licenses/LICENSE-2.0>)<29><00><>IF - MIT license ([LICENSE-MIT] or <http://opensource.org/licenses/MIT>)<29><1C><02><00><> at your option.<2E><1C><02><00><> ## Copyright<68><1C><02><00><>NK A majority of the code and documentation was taken from [`std::time`]. For<6F><00><>^[ license information see [#License](https://github.com/rust-lang/rust/tree/1.68.1#license).<2E><1C><02><00><> ## Contribution<6F><1C><02><00><>IF Unless you explicitly state otherwise, any contribution intentionally<6C><00><>LI submitted for inclusion in the work by you, as defined in the Apache-2.0<EFBFBD><00><>MJ license, shall be dual licensed as above, without any additional terms or<6F>|<7C> conditions.<2E><1C><02><00><>NK [CHANGELOG]: https://github.com/daxpedda/web-time/blob/v1.1.0/CHANGELOG.md<6D><00><> TQ [CONTRIBUTING]: https://github.com/daxpedda/web-time/blob/v1.1.0/CONTRIBUTING.md<6D><00><> OL [LICENSE-MIT]: https://github.com/daxpedda/web-time/blob/v1.1.0/LICENSE-MIT<49><00><>!UR [LICENSE-APACHE]: https://github.com/daxpedda/web-time/blob/v1.1.0/LICENSE-APACHE<48><00><>"GD [worklet]: https://developer.mozilla.org/en-US/docs/Web/API/Worklet<65><00><>"mj [`Date.now()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now<6F><00><>#GD [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html<6D><00><>$YV [`Instant::now()`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now<6F><00><>$MJ [`SystemTime`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html<6D><00><>%_\ [`SystemTime::now()`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.now<6F><00><>&=: [`std::time`]: https://doc.rust-lang.org/stable/std/time/<2F><00><>&[X [`performance.now()`]: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now<6F><00><>'gd [`Performance.timeOrigin`]: https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin<69><00><>(a^ [`Performance` object]: https://developer.mozilla.org/en-US/docs/Web/API/performance_property<74><02><1C>) <0C>)L[`serde::Deserialize`]: https://docs.rs/serde/1/serde/trait.Deserialize.html<6D><01>8<00><>)N<01><>)T<02><1C>* <0C>*H[`serde::Serialize`]: https://docs.rs/serde/1/serde/trait.Serialize.html<6D><01>9<00><>*J<01><>*P<00><>*;8 [`wasm-bindgen`]: https://crates.io/crates/wasm-bindgen<65><02>G<01>a <01>;<02>t<01>N<01><13><01>N<01><13><01>N<02><13>Ö<01><13>ؖGGGL<>-<00>Ehttps://developer.mozilla.org/en-US/docs/Web/API/performance_property<74>worklet<65>8https://developer.mozilla.org/en-US/docs/Web/API/Worklet<65>@https://github.com/daxpedda/web-time/blob/v1.1.0/CONTRIBUTING.md<6D>1https://github.com/sebcrozet/instant/tree/v0.1.12<EFBFBD>,https://github.com/time-rs/time/tree/v0.3.20<EFBFBD><02>6https://doc.rust-lang.org/std/time/struct.Instant.html<6D>SystemTime::now()<29>Performance object<63><01>;<01>< CONTRIBUTING<4E><01><<01>=Instant::now()<29><02><01>>the MDN documentation on this<69><01>><01>; Crates.io<69><01>><01><serde<64>*https://doc.rust-lang.org/stable/std/time/<2F><01>?<02>%https://crates.io/crates/wasm-bindgen<65><01>?<01>> https://crates.io/crates/instant<6E><01>?<01>>-https://github.com/rust-lang/rust/tree/1.68.1<EFBFBD><01>? std::time<6D><01>@<01>? wasm-bindgen<65><01>@<01>?instant<6E><01>@<01>?#License<73><01>A<01>?<01>A<01>@<01>Ghttps://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin<69><01>A<01>@2https://docs.rs/serde/1/serde/trait.Serialize.html<6D><01>B<01>@<https://github.com/daxpedda/web-time/blob/v1.1.0/LICENSE-MIT<49><01>B<01>A<01>A<01>:<01>Performance.timeOrigin<69><01>B<01>A<01>C<01>B LICENSE-MIT<49><01>C<01>BYhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now<6F><01>D<01>B<01>serde::Serialize<7A><01>C<01>?https://github.com/daxpedda/web-time/blob/v1.1.0/LICENSE-APACHE<48><01>D<01>C
Date.now()<29><01>E<01>D4https://docs.rs/serde/1/serde/trait.Deserialize.html<6D><01>E<01><02>LICENSE-APACHE<48><01>F<01>D@https://developer.mozilla.org/en-US/docs/Web/API/Performance/now<6F><01>F<01>E<01>F<01>E=https://github.com/daxpedda/web-time/blob/v1.1.0/CHANGELOG.md<6D><01><01>N<02><01>G<01>FPerformance.now()<29><01>G<01>Fserde::Deserialize<7A><01>F CHANGELOG<4F><01>H<01>G<02><01>N9https://doc.rust-lang.org/std/time/struct.SystemTime.html<6D><01>I<01>G<01><<01>I<01>=<01>I<01>H<01>><01>I<01>I<01><<01><<01>I<01>=<01>=<01>I<01>><01>><01>I<02><02><02><02><02><02><02><02>J<02><02><02><02><02><02><02><02> <02> <02> <02> <02><02><02><02>J<02>K<02>J<02>J<02>K<02><><02><>®<03><03>5<EFBFBD>,<2C><>ٯ<EFBFBD>q<EFBFBD>S -<2D>%Y <0B><16><><EFBFBD><EFBFBD>i<EFBFBD><0F>!<21><><EFBFBD><EFBFBD>FFE<1D><03><1D><1D><00>C25<@<03><1D> %"%<02> <00>,<2C><>ٯ<EFBFBD>q<EFBFBD>X<EFBFBD><58><EFBFBD>W<EFBFBD><57><02>&8&<&]&M&r&<26>ODHT <02><><00><0F>!<21><><EFBFBD><EFBFBD><00>,<2C><>ٯ<EFBFBD>q<00>S -<2D>%Y <00><16><><EFBFBD><EFBFBD>i<00><>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD>8<EFBFBD>4<><34><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD>8<EFBFBD>4<><34><EFBFBD>`C:\Users\dxzq\.cargo\registry\src\mirrors.ustc.edu.cn-38d0e5eb5da2abae\web-time-1.1.0\src\lib.rs<72> <20>;~<7E><><10><>]񌵳<>U+<<3C>M<><4D><EFBFBD><EFBFBD><07>w<11><>7<EFBFBD><00>.<2E>.<2E>KMMP;NGHLBON. =PQ PQ7 OLQ3<04>OO  . )"C O<<04>-ih*eJO_JMNOUPVHnHZN`>\hb ;WR<';
H# @;<00><13>ǹo[<5B>U<EFBFBD>o<7F>]<5D><00>'x86_64-pc-windows-msvc<76><63><EFBFBD>a<><10>F <20><03>|-web_time<6D>-a21bed26b74d44a9<61><39>,<2C><>ٯ<EFBFBD>q <0A>Q<02><00>F N<01>rust-end-file