Skip to content

Latest commit

 

History

History
108 lines (67 loc) · 3.17 KB

CHANGELOG.md

File metadata and controls

108 lines (67 loc) · 3.17 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • no_std support through a std crate feature.

  • Support for the wasm32v1-none target.

  • MSRV policy.

  • A msrv crate feature that allows web-time to make use of features only available in higher MSRVs. This offers compile-time detection and does not break compilation when enabled with the crates MSRV.

    • Rust v1.77 + std: Enables the use of the f64.nearest instruction. Which will significantly reduce the instruction count for Instant::now().
    • Rust Nightly: Enables the use of the f64.trunc and f64.nearest instruction. Which will significantly reduce the instruction count for Instant::now().

Changed

  • Improve performance of Instant::now() by using f64::round_ties_even() instead of f64::round() internally.
  • Removed js-sys dependency in favor of custom bindings.

Fixed

  • As wasm64-* is not supported, web-time now falls back to std instead of unnecessarily pulling in dependencies on these targets.

1.1.0 - 2024-03-01

Added

  • Serde de/serialization support for SystemTime through a serde crate feature.

1.0.0 - 2024-01-14

Added

  • V1 release.

0.2.4 - 2023-12-24

Added

  • web module containing a platform-specific extension trait to SystemTime, allowing conversion from and to std::time::SystemTime.

Changed

  • Improve performance of SystemTime by using Duration internally.

0.2.3 - 2023-10-23

Changed

  • Improve accuracy of Instant::now().

0.2.2 - 2023-10-08

Fixed

  • Time conversion for Instant.

0.2.1 - 2023-10-07 [YANKED]

Changed

  • Bump MSRV to v1.60.

Removed

  • Unnecessary once_cell dependency.

0.2.0 - 2023-03-28

Added

0.1.0 - 2023-03-27

Added

  • Initial release.